Стартавая модель задачника

This commit is contained in:
adm
2024-02-22 16:15:54 +03:00
parent 50646130fe
commit 2119c30a0a
28 changed files with 1227 additions and 0 deletions

10
system/main/admin.py Normal file
View File

@@ -0,0 +1,10 @@
from django.apps import apps
from django.contrib import admin
#
models = apps.get_models()
# код что отображает все модели всех apps
for model in models:
try:
admin.site.register(model)
except admin.sites.AlreadyRegistered:
pass