@classmethod question

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Apr 30 11:24:52 CEST 2008


Scott SA a écrit :
> On 4/24/08, Bruno Desthuilliers (bruno.42.desthuilliers at websiteburo.invalid) wrote:
> 
>>> It is a series of convenience methods, in this case I'm interacting
>>> with a database via an ORM (object-relational model).
>> out of curiosity : which one ?
> 
> I'm rapidly becoming a "django junkie"^TM
> 

(snip)

Then if you want some "table-level" operations on your models, you 
should put them in a custom manager. You'll find relevant stuff here:

http://www.b-list.org/weblog/2008/feb/25/managers/
http://www.djangoproject.com/documentation/model-api/#managers



More information about the Python-list mailing list