kadenios/elections/admin.py

13 lines
271 B
Python
Raw Normal View History

2020-11-20 17:45:59 +01:00
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