Code

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#754 closed defect (fixed)

editable=False causes fields to lose current value upon save in admin interface

Reported by: Tom Tobin <korpios@…> Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If editable=False is set on a model field, that field's value will be set to its default upon saving from the admin interface, losing its current value. This behavior does not occur when manipulating model objects directly.

Example: a BooleanField has default=False and editable=False. If an object of its corresponding model has this field set to True, and the object is subsequently edited and saved in the admin interface, the object will have its value for that field set to False.

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by Tom Tobin <korpios@…>

  • Resolution set to fixed
  • Status changed from new to closed

It looks like this one got fixed somewhere along the way.

comment:2 Changed 7 years ago by korpios

  • Reporter changed from Tom Tobin <korpios@…> to Tom Tobin <korpios@…>

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.