forked from DGNum/gestioCOF
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:
parent
5794f0945f
commit
14fa40c1ff
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Command(BaseCommand):
|
||||||
on_acc=account,
|
on_acc=account,
|
||||||
checkout=checkout,
|
checkout=checkout,
|
||||||
at=at,
|
at=at,
|
||||||
is_cof=account.profile.is_cof,
|
is_cof=account.profile.user.has_perm("cof.member"),
|
||||||
amount=amount,
|
amount=amount,
|
||||||
))
|
))
|
||||||
at_list.append(at)
|
at_list.append(at)
|
||||||
|
|
Loading…
Reference in a new issue