Get m2m id to update the m2m model.

2008-10-12 Thread xkill
Hello, I try to update a m2m relation. So this is the problem: models.py --- from django.db import models class instruments(models.Model): name = models.CharField(max_length=10) class people(User): objects = UserManager() phone = models.CharField(max_length=9, blank=Tr

Multiple ManyToMany relations with the same class

2008-10-06 Thread xkill
Hello, I tried to add multiple manytomany fields to a class, that pointing to the same class. For example: class person(models.Model): name = models.CharField(max_length=30) phone = models.CharField(max_length=9, blank=True, null=True) def __unicode__(self): return self.name