Compare commits
2 commits
2beae209cd
...
42fbd99c72
| Author | SHA1 | Date | |
|---|---|---|---|
| 42fbd99c72 | |||
| 68f9de15fc |
1 changed files with 1 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ class CrdModelFormMixin:
|
|||
name.startswith(f) for f in self.HIDDEN_FIELDS
|
||||
):
|
||||
field.widget = forms.HiddenInput()
|
||||
field.required = False
|
||||
|
||||
if self.instance and self.instance.pk:
|
||||
self.fields["name"].disabled = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue