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
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
2 matches
Mail list logo