Aha,
Found solution myself. Any newbies trying to pull the latest item of
anything... under your model definition, set a meta class with the
following:
class Meta:
get_latest_by = "some_datefield"
Then in your template simply use something like the following:
{{ object.product_sell_price
Thanks guys,
Signals I think is beyond me for the time being but Mark I think I see
what you're saying... you mean define an 'adjust_price' method outside
of save and call that when necessary? Cleaning up the code would help
me get through the rest of it!
The last save method is indeed a compli
2 matches
Mail list logo