List Info

Thread: ManyToMany Self Relationships pre Magic Removal




ManyToMany Self Relationships pre Magic Removal
user name
2006-07-28 20:31:16
Is it possible to do a self referencing manytomanyfield pre
magic
removal?  Something like:

class Url(models.Model):
    location = models.URLField()
    referrers = models.ManyToManyField('self', blank=True,
null=True)

Cheers,
deryck

-- 
Deryck Hodge                            http://www.devurandom.org/

Web Developer, Naples News     http://www.naplesnews.com/

Samba Team                                    http://www.samba.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

ManyToMany Self Relationships pre Magic Removal
user name
2006-07-28 20:45:10
On 7/28/06, Deryck Hodge <derycksamba.org> wrote:
> Is it possible to do a self referencing manytomanyfield
pre magic
> removal?

No, I don't believe we supported self-referencing
many-to-many fields
before magic-removal.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

ManyToMany Self Relationships pre Magic Removal
user name
2006-07-28 20:53:00
On 7/28/06, Adrian Holovaty <holovatygmail.com> wrote:
>
> On 7/28/06, Deryck Hodge <derycksamba.org> wrote:
> > Is it possible to do a self referencing
manytomanyfield pre magic
> > removal?
>
> No, I don't believe we supported self-referencing
many-to-many fields
> before magic-removal.

Thanks for the confirmation, Adrian.

deryck

-- 
Deryck Hodge                            http://www.devurandom.org/

Web Developer, Naples News     http://www.naplesnews.com/

Samba Team                                    http://www.samba.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )