Fix COF membership test in loadkfetdevdata

cofprofile.is_cof don't exist anymore. The membership test should be performed
like `cofprofile.profile.user.has_perm("cof.member")`
This commit is contained in:
Martin Pépin 2017-10-30 12:43:47 +01:00
parent 5794f0945f
commit 14fa40c1ff

View file

@ -134,7 +134,7 @@ class Command(BaseCommand):
on_acc=account,
checkout=checkout,
at=at,
is_cof=account.profile.is_cof,
is_cof=account.profile.user.has_perm("cof.member"),
amount=amount,
))
at_list.append(at)