Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#10527 closed (fixed)

list_editable fails if field is not editable

Reported by: Florian Apolloner Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

list_editable fails if the requested field isn't editable via the admin interface, like:

creation_date = models.DatetimeField(auto_now_add=True)

To prevent those errors, I added another validation check which ensures the field is editable.

Attachments (1)

list_editable_validation.diff (2.1 KB) - added by Florian Apolloner 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Florian Apolloner

comment:1 Changed 8 years ago by Alex Gaynor

milestone: 1.1 beta1.1
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 8 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [10080]) Fixed #10530, #10527: added a couple more validation errors around list_editable. Thanks, Florian Apolloner.

comment:3 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top