jp.dev 2020-11-20 14:49:37 -03:00
parent 5583c82160
commit e347088e64

@ -0,0 +1,18 @@
## Registro de App en Panel de Administración
[Crear SuperUsuario](https://gitea.kickto.net/jp.av.dev/intro_Django/wiki/3_Panel_Administrador#user-content-crear-superusuario-con-perf%C3%ADl-de-administrador)
servicios/**admin.py**
```
from django.contrib import admin
from .models import Servicio
# Register your models here.
class ServicioAdmin(admin.ModelAdmin):
readonly_fields = ('created','updated')
admin.site.register(Servicio, ServicioAdmin)
```
![img](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/admin_panel.png)