Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法让 django-guardian assign_perm 在南部数据迁移中工作......它不起作用的原因似乎是因为 Guardian 没有使用冻结的 ORM。我如何才能让其他应用程序和 django-guardian 专门使用冻结模型。
我用get_user_model()而不是orm['auth.User']
get_user_model()
orm['auth.User']