Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#267 closed defect (fixed)

admin redirect when "save and continue editing" uses

Reported by: hugo <gb@…> 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:


When using the "save and continue editing" call, the code makes use of a 'id' attribute in line 769:

return HttpResponseRedirect(post_url_continue %

If the model doesn't have an 'id' attribute but uses primary_key=True on some field, this doesn't work. Either disable the "save and continue editing" button on models without a 'id' attribute or use the pk_name field.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by adrian

  • Status changed from new to assigned

comment:2 Changed 9 years ago by adrian

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

(In [400]) Fixed #267 -- "Save and continue editing" no longer assumes object has an ID field. Thanks, Hugo

comment:3 Changed 7 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.