Missing rename of Role.est_famille
This commit is contained in:
parent
aefb86b4b2
commit
442b23d4a8
|
@ -271,7 +271,7 @@ class PersonneForm(CityChMixin, BootstrapMixin, ReadOnlyableMixin, forms.ModelFo
|
|||
if role_id == 'ps': # personne significative
|
||||
excl = Role.ROLES_PARENTS + ['Enfant suivi', 'Enfant non-suivi']
|
||||
self.fields['role'].queryset = Role.objects.filter(
|
||||
famille=True
|
||||
est_famille=True
|
||||
).exclude(nom__in=excl)
|
||||
elif role_id == 'parent':
|
||||
self.fields['role'].queryset = Role.objects.filter(nom__in=Role.ROLES_PARENTS)
|
||||
|
@ -298,7 +298,7 @@ class PersonneForm(CityChMixin, BootstrapMixin, ReadOnlyableMixin, forms.ModelFo
|
|||
if len(famille.parents()) == 2:
|
||||
excl.extend(Role.ROLES_PARENTS)
|
||||
self.fields['role'].queryset = Role.objects.filter(
|
||||
famille=True
|
||||
est_famille=True
|
||||
).exclude(nom__in=excl)
|
||||
|
||||
def clean_nom(self):
|
||||
|
|
Loading…
Reference in a new issue