Answer the question
In order to leave comments, you need to log in
Why doesn't update work in django?
there is a code
print self.bar
print baz(apply_date, n=1, include_today=False)
print Foo.objects.all().filter(id=self.id).update(
bar=baz(apply_date, n=1, include_today=False))
print self.bar
None
2014-02-01
1
None
Foo.objects.filter(id=self.id).update(
bar=baz(apply_date, n=1, include_today=False))
also tried
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question