Re: m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Mike, Cool, you are right! Changing the related_name to something different than groups seems to solve the problem. Thank you very much :-) Roberto On 02/24/2013 11:30 PM, Mike Dewhirst wrote: > Roberto > > I'm not entirely sure but it is possible that your group is getting > mixed up with

Re: m2m relation just working in one direction

2013-02-24 Thread Mike Dewhirst
Roberto I'm not entirely sure but it is possible that your group is getting mixed up with the contrib.auth group. I would try changing the name of my group temporarily to something else just to eliminate that. Mike On 25/02/2013 8:58am, Roberto López López wrote: Hi, I have a problem

m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Hi, I have a problem involving a relation between two entities, Person and Group. from django.contrib.auth.models import User from django.db import models class Group(models.Model): employees = models.ManyToManyField('staff.Person', related_name='groups') leader =