Re: Adding new attributes to objects in a query_set in custom Manager

2009-03-03 Thread Malcolm Tredinnick
On Tue, 2009-03-03 at 03:41 -0800, A Melé wrote: > I tried to add a custom attribute to the objects in the query_set of a > custom Manager before returning the query_set but it seems not to > work: > > class SongManager(models.Manager): > def expire(self): > from boto.s3.connection

Adding new attributes to objects in a query_set in custom Manager

2009-03-03 Thread A Melé
I tried to add a custom attribute to the objects in the query_set of a custom Manager before returning the query_set but it seems not to work: class SongManager(models.Manager): def expire(self): from boto.s3.connection import S3Connection c = S3Connection() for song