Opened 17 years ago

Closed 17 years ago

#5573 closed (duplicate)

"save" override does not work when model uses edit_inline

Reported by: Beau Gunderson <beau@…> Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords: edit_inline
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Current behavior:

  1. Create model a
  2. Create model b with ForeignKey relationship to a
  3. Create a save() override in model b
  4. Verify that the save() override is called when a new b instance is created with the admin interface
  5. Change model b's ForeignKey relationship to include 'edit_inline=models.TABULAR' (or models.STACKED)
  6. Verify that the save() override is not called when creating a new b from model a's admin page

Expected behavior:

Step 6 should still call the save() override defined in model b.

Change History (2)

comment:1 by Beau Gunderson <beau@…>, 17 years ago

It looks like WikiFormatting is also broken. Here's the list again for better readability:

1. Create model a 
2. Create model b with ForeignKey relationship to a 
3. Create a save() override in model b 
4. Verify that the save() override is called when a new b instance is created with the admin interface 
5. Change model b's ForeignKey? relationship to include 'edit_inline=models.TABULAR' (or models.STACKED) 
6. Verify that the save() override is not called when creating a new b from model a's admin page

comment:2 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2666. Please search the ticket tracker before filing new tickets.

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