Temp admin setup
This commit is contained in:
parent
38251ba37e
commit
29dc3a64f3
1 changed files with 12 additions and 0 deletions
12
elections/admin.py
Normal file
12
elections/admin.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
from django.apps import apps
|
||||||
|
|
||||||
|
# FIXME: this is a temp workaround to help for development
|
||||||
|
|
||||||
|
models = apps.get_models()
|
||||||
|
|
||||||
|
for model in models:
|
||||||
|
try:
|
||||||
|
admin.site.register(model)
|
||||||
|
except admin.sites.AlreadyRegistered:
|
||||||
|
pass
|
Loading…
Reference in a new issue