Compare commits

..

2 commits

Author SHA1 Message Date
42fbd99c72 Merge pull request 'Fix instance creation breaking due to hidden fields' (#181) from 180-fix-instance-creation into main
All checks were successful
Build and Deploy Staging / build (push) Successful in 51s
Tests / test (push) Successful in 24s
Build and Deploy Staging / deploy (push) Successful in 10s
Reviewed-on: #181
2025-09-05 20:38:06 +00:00
68f9de15fc Fix instance creation breaking due to hidden fields
All checks were successful
Tests / test (push) Successful in 26s
2025-09-05 22:37:09 +02:00

View file

@ -218,6 +218,7 @@ class CrdModelFormMixin:
name.startswith(f) for f in self.HIDDEN_FIELDS name.startswith(f) for f in self.HIDDEN_FIELDS
): ):
field.widget = forms.HiddenInput() field.widget = forms.HiddenInput()
field.required = False
if self.instance and self.instance.pk: if self.instance and self.instance.pk:
self.fields["name"].disabled = True self.fields["name"].disabled = True