Hack to handle duplicate permission entries…

ONLY A TEMPORARY FIX
But migrations pass now
This commit is contained in:
Martin Pépin 2017-10-26 11:16:56 +02:00
parent 547d866955
commit 36827cef6b

View file

@ -25,6 +25,7 @@ def setup_kfet_generic_user(**kwargs):
generic.user_permissions.add(
Permission.objects.get(
content_type__app_label='kfet',
content_type__model='account',
codename='is_team',
)
)