1👍
✅
Remove the .title
in the line tags = models.ManyToManyField(Tag.title)
.
ManyToManyField just want a model and you’re giving it an attribute of this model which is not working either because Tag is a class not an instance.
If you want your Tag to display it’s title when displaying it, just write the unicode method.
class Tag(models.Model):
#your fields here
def __unicode__(self):
return u"{0}".format(self.title)
Source:stackexchange.com