更新时间:2023-10-10 21:35:16
如果您有任何具有 auth.User
外键的应用程序,请确保这些应用程序的初始迁移具有依赖 auth 应用:
If you have any apps which have foreign keys to auth.User
, then make sure that the initial migrations for those apps have a dependency on the auth app:
class Migration(migrations.Migration):
dependencies = [('auth', '__first__')]