New FormSet.edit_only only set when formset created by modelformset_factory
The new FormSet.edit_only attribute (#26142) is only set from modelformset_factory. So if you create a formset class in a different way, the edit_only attribute is not set and a crash happens in the save() method when referring to if self.edit_only:.
Change History
(8)
| Cc: |
Vlad added
|
| Easy pickings: |
set
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to Shawn Dong
|
| Status: |
new → assigned
|
| Cc: |
Shawn Dong added
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Has patch: |
set
|
| Needs tests: |
set
|
| Triage Stage: |
Ready for checkin → Accepted
|
| Needs tests: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Agreed, we should set:
Thanks for the report!