admin.py 219 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2
3
4
5
6
7
from django.contrib import admin
from django.apps import apps

from . import models

b = apps.get_app_config('backend')

8
# register all models of the app
Lukas Burgey's avatar
Lukas Burgey committed
9
10
for _, model in b.models.items():
    admin.site.register(model)