Re: 'Latest' foreign key template filter?

2009-03-02 Thread Allfonso
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

Re: Django App build - the right process?

2009-02-24 Thread Allfonso
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