from django.contrib import admin from django.apps import apps models = apps.get_models() for model in models: admin.site.register(model).
確定! 回上一頁