Correction du nom par défaut

This commit is contained in:
Jean-Marie Favreau 2024-12-06 23:22:38 +01:00
parent a31bcc2764
commit bd1330cd2f

View File

@ -75,7 +75,7 @@ class GroupFormMixin:
return [f for f in self.visible_fields() if not hasattr(f.field, "toggle_group") and (not hasattr(f.field, "group_id") or f.field.group_id == None)]
def fields_by_group(self):
return [(g, self.get_fields_in_group(g)) for g in self.groups] + [(None, self.get_no_group_fields())]
return [(g, self.get_fields_in_group(g)) for g in self.groups] + [(GroupFormMixin.FieldGroup("other", _("Other")), self.get_no_group_fields())]
def clean(self):
result = super().clean()