Browse Source

Add all models to admin

pull/6/head
Marcio Mazza 10 years ago
parent
commit
122e800003
  1. 8
      base/admin.py
  2. 8
      comissoes/admin.py
  3. 8
      lexml/admin.py
  4. 8
      materia/admin.py
  5. 8
      norma/admin.py
  6. 8
      parlamentares/admin.py
  7. 8
      protocoloadm/admin.py
  8. 2
      sapl/settings.py
  9. 8
      sessao/admin.py

8
base/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
comissoes/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
lexml/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
materia/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
norma/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
parlamentares/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

8
protocoloadm/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

2
sapl/settings.py

@ -25,7 +25,7 @@ SECRET_KEY = '!9g1-#la+#(oft(v-y1qhy$jk-2$24pdk69#b_jfqyv!*%a_)t'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition

8
sessao/admin.py

@ -1,3 +1,9 @@
from django.apps import apps
from django.contrib import admin
# Register your models here.
appname = __name__.split('.')[0]
app = apps.get_app_config(appname)
for model in app.get_models():
admin.site.register(model)

Loading…
Cancel
Save