On Oct 25, 12:26 pm, Russell Keith-Magee
wrote:
> Hi Mike,
>
> Easily done
Just as you said. Works like a charm. And as an added benefit, I
understand what the code's doing.
Caveats noted.
Thanks a bunch.
-Mike.
> , and no need to use signals or raw SQL: just override the save
> method on you
Hi Mike,
Easily done, and no need to use signals or raw SQL: just override the save
method on your model so that every time you call save, the value in the baz
column is updated.
class Foo(models.Model):
bar = models.CharField()
baz = models.CharField()
def save(self, *args, **kwargs
2 matches
Mail list logo