sprint/Main/admin.py
2021-08-29 21:43:34 +03:00

12 lines
236 B
Python

from django.contrib import admin
from Main.models import *
import Main.models
# Register your models here.
for model in dir(Main.models):
try:
admin.site.register(eval("Main.models." + model))
except:
continue