【发布时间】:2013-07-29 19:33:13
【问题描述】:
我无法让 django-guardian assign_perm 在南方数据迁移中工作......它不起作用的原因似乎是因为 Guardian 没有使用冻结的 ORM。我怎样才能让其他应用程序和 django-guardian 专门使用冻结模型。
【问题讨论】:
-
我最终混合使用了 orm['contenttypes.ContentType'], orm['auth.permission'], orm['guardian.userobjectpermission'] ... 来手动获取或创建权限。
标签: python django-south django-guardian