Re: update a field of a related table on form save

2014-07-30 Thread Brad Rice
Thank you both for those suggestions. I got Tundebazby's to work as it was closest to what I was doing. I'll have to study the post_save some more. On Wednesday, July 30, 2014 2:33:57 AM UTC-4, Tundebabzy wrote: > > Hi Brad, my response is inline > > On 30 Jul 2014 02:26, "Brad Rice"

Re: update a field of a related table on form save

2014-07-30 Thread marc
Hi Brad, i would register a 'post_save' signal (https://docs.djangoproject.com/en/dev/ref/signals/#post-save) on the first model and then, just hit the save method on the Application model, this will automaticly update the time. Cheers, Marc Am Mittwoch, 30. Juli 2014 03:26:21 UTC+2 schrieb

Re: update a field of a related table on form save

2014-07-30 Thread Babatunde Akinyanmi
Hi Brad, my response is inline On 30 Jul 2014 02:26, "Brad Rice" wrote: > > I have three tables. The first one is application which has a flag for if an app has been submitted as well as created date and modified date. The other two tables relate to the application table. I

update a field of a related table on form save

2014-07-29 Thread Brad Rice
I have three tables. The first one is application which has a flag for if an app has been submitted as well as created date and modified date. The other two tables relate to the application table. I have two forms that get update those tables. What I want to do is update the application