On 11/1/05, stava <[EMAIL PROTECTED]> wrote: > In a foreign key relationsship (like Polls and Choices in the > tutorial), the _pre_save() definition tries to retrieve the subordinate > ("choices") items from the database. I really would like to get hold of > the subordinate items prior to being saved to database (well, it's > called pre_save, right?) in order to do some simple calculations before > the items get saved. > > Does anyone know how this could be done?
A model's _pre_save() method doesn't have access to any related objects. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org