9 lines
181 B
Python
9 lines
181 B
Python
|
from django.apps import apps
|
||
|
from django.contrib import admin
|
||
|
|
||
|
|
||
|
app = apps.get_app_config('nmgfitness')
|
||
|
|
||
|
for model_name, model in app.models.items():
|
||
|
admin.site.register(model)
|