Skip to content

Commit

Permalink
fixup clean admin
Browse files Browse the repository at this point in the history
No idea why I cant reproduce the bug I had when I made this change
  • Loading branch information
tonial committed Jan 23, 2025
1 parent f2f0b39 commit af9af40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itou/eligibility/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class AbstractSelectedAdministrativeCriteriaInlineFormSet(BaseInlineFormSet):
def clean(self):
super().clean()
for line in getattr(self, "cleaned_data", []):
for line in self.cleaned_data:
if line.get("DELETE") and line["id"].certified:
raise ValidationError("Impossible de supprimer un critère certifié")

Expand Down

0 comments on commit af9af40

Please sign in to comment.