Re: Need to reload model object after saving?

2006-04-11 Thread Christian Schneider
I think that changed in magic removal. I used get_status() in 0.91 but that showed the same results.chrisOn 4/11/06, Kenneth Gonsalves < [EMAIL PROTECTED]> wrote:On Tue, April 11, 2006 2:48 pm, Christian Schneider said: > def __repr__(self):> return "%s (%s - %s)" % (self.name, self.typ

Re: Need to reload model object after saving?

2006-04-11 Thread Kenneth Gonsalves
On Tue, April 11, 2006 2:48 pm, Christian Schneider said: > def __repr__(self): > return "%s (%s - %s)" % (self.name, self.type, self.status) shouldnt that be self.get_status()? -- regards kg --~--~-~--~~~---~--~~ You received this message because

Re: Need to reload model object after saving?

2006-04-11 Thread Christian Schneider
Hi,I'm afraid I can't answer the question but rather will add another one in the same vain.I found that changing a foreign key field exhibits the same behaviour and also think that's very confusing. Changing values directly in a model are immediately reflected in the model but setting a foreign key

Need to reload model object after saving?

2006-04-10 Thread DavidA
The DateTimeField of my object has 'auto_now_add' set to true on it. But I can't see the value of the field after saving, unless I reload it. Is this intended behavior? >>> from plainfield.tasks.models import Task, Run >>> t = Task.objects.get(name__exact='Test') >>> r = Run(task_id=t, command=''