📅  最后修改于: 2022-03-11 14:45:14.174000             🧑  作者: Mango
from django.apps import apps
user = apps.get_model(app_label='auth', model_name='User')
# Can also support syntax like 'auth.User' passing a single parameter
user = apps.get_model('auth.User')