I have this simple model:
class Tag(models.Model):
title = models.SlugField()
created = models.datetime
def __unicode__(self):
return self.title
class Entry(models.Model):
title = models.CharField(max_length=30)
created = models.datetime
tags = models.ForeignKey(Tag)
categories = models.CharField(max_length=15)
def __unicode__(self):
return self.title
class Meta:
verbose_name_plural = "Entries"
I need to be able to attach multiple tags to the entry so that it could be saved to the database. How can I do that? Now there is only one tag assigned.