On 1 juil, 10:45, littlejim84 <james.morris1...@googlemail.com> wrote:
> I'm new to Django, and I'm developing an project where I have an app
> called 'people' and a model inside called 'person'. The project itself
> is based around the idea of people connecting with each other... So, I
> as a person can connect to 3 other persons in the project, or any of
> those persons can connect with any other number of persons etc. So I
> do presume this should definitely be a ManyToManyField. But would I
> just pass the Person model as the ManyToManyField parameter inside the
> Person model? ... Is this the best way to do this, as it'll be many-to-
> many to itself?
>
> Hope this makes sense...
> Thanks

Indeed, it is a many-to-many to itself, you'll find examples in the
official doc:
http://www.djangoproject.com/documentation/models/m2m_recursive/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to