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