[Fixed]-Saving the current data before updating the form in Django

1👍

cIt sounds like you want to override the save method of your tblTicket model so that it creates a new LogChanges object. Like this..

class tblTicket(models.Model):
    ...

    def save(self):
        super(tblTicket, self).save()
        LogChanges.objects.create(prevRemarks=self.remarks)

Leave a comment