Opened 18 years ago
Last modified 16 years ago
#2666 closed defect
redefined save methods not always called when using free admin — at Initial Version
Reported by: | GoClick | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | major | Keywords: | nfa-fixed |
Cc: | Triage Stage: | Fixed on a branch | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Given something loseley like this
class a(models.Model):
def save(self):
super(a, self).save()
class b(models.Model):
ta = models.ForeignKey(a, edit_inline=models.TABULAR, num_in_admin=5)
def save(self):
super(b, self).save()
when I edit an a in the admin and press save the save method is called. However if I edit the b objects inline the save method for a is not called even if there were changes made to the a object aswell, the object seems to be getting saved with the superclass' save method not the new redefined one.