I have two models as follows
class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) date_of_birth = models.DateField() height = models.IntegerField() def __unicode__(self): return '%s %s' %(self.first_name, self.last_name) class Movie(models.Model): name = models.CharField(max_length = 30) language = models.CharField(max_length=30) release_date = models.DateField() image = models.ImageField(upload_to = 'images') cast = models.ManyToManyField(Person) directors = models.ManyToManyField(Person) def __unicode__(self): return self.name cast and directors having maytomany relationship with person is causing an error. How can i overcome this?? Thanks, Venkateswara Reddy, eswar0...@gmail.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6ac4d8a8-dba0-4345-b159-b142e1ac932b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.