mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
10 years ago
9 changed files with 57 additions and 9 deletions
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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) |
||||
|
@ -1,3 +1,9 @@ |
|||||
|
from django.apps import apps |
||||
from django.contrib import admin |
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…
Reference in new issue