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
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 =
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
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
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
5 matches
Mail list logo