#31952 closed Bug (fixed)
Using EmptyFieldListFilter with reverse relationship crashes
| Reported by: | Mariusz Felisiak | Owned by: | Federico Jaramillo Martínez |
|---|---|---|---|
| Component: | contrib.admin | Version: | 3.1 |
| Severity: | Release blocker | Keywords: | |
| Cc: | Federico Jaramillo Martínez, Jonas Haag, Christophe Baldy, dacotagh | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Using EmptyFieldListFilter with reverse relationship crashes because they don't have empty_strings_allowed attribute. I reproduced this issue with all types of reverse relationship:
AttributeError: 'ManyToManyRel' object has no attribute 'empty_strings_allowed' AttributeError: 'ManyToOneRel' object has no attribute 'empty_strings_allowed' AttributeError: 'OneToOneRel' object has no attribute 'empty_strings_allowed'
Thanks dacotagh for the report.
Change History (4)
comment:1 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 5 years ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.
PR