Re: model inheritance - getting data from child objects

2008-11-08 Thread euglena
Use ContentType. Read about it in django documentation On Nov 8, 2:03 am, Alistair Marshall <[EMAIL PROTECTED]> wrote: > On Nov 7, 4:19 pm, Gerard flanagan <[EMAIL PROTECTED]> wrote: > > > I don't know if it's clever or stupid, but this is what I have done in a > > similar situation: > > It

Re: Ordering M2M field?

2008-10-28 Thread euglena
most of the time, intermediate model is more useful than M2M relationship... On Oct 24, 10:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, I have a model with a many to many relationship.. pretty > straightforward pre-1.0 code: > > class SpecialEvent(models.Model): >     sponsors =

Re: djangoamf doesn't work with models with ImageField

2008-09-22 Thread euglena
ackages\django\db\models \fields\__ini t__.py", line 102, in __cmp__ return cmp(self.creation_counter, other.creation_counter) AttributeError: 'list' object has no attribute 'creation_counter' On Sep 19, 10:34 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On

Re: djangoamf doesn't work with models with ImageField

2008-09-19 Thread euglena
anyone there? On Sep 13, 11:49 am, euglena <[EMAIL PROTECTED]> wrote: > Hi everybody, > I have a model like this: > class Product(models.Model): >     ... >     icon = models.ImageField(upload_to='icons/', blank=True) >     ... > > And I want my dangoamf to get a l

djangoamf doesn't work with models with ImageField

2008-09-12 Thread euglena
Hi everybody, I have a model like this: class Product(models.Model): ... icon = models.ImageField(upload_to='icons/', blank=True) ... And I want my dangoamf to get a list of this model's objects. I always get an AttributeError: 'list' object has no attribute 'creation +counter' if I