Re: update 2nd model via first when saved

2007-09-05 Thread Brian Morton
class Hardware(models.Model): blah = models.CharField() ... #called every time the model instance is saved def save(): #if you want many hardware history records for a piece of hardware history = HardwareHistory.create(hardware=self, ...) #if you only want

update 2nd model via first when saved

2007-09-05 Thread hotani
I am attempting to avoid writing a custom admin page. There are at most two people that will be updating the database, and this seems like a great job for the django admin area. However, for this to work I need a way to update a 2nd model (a history table) when another model is updated. Is this p