class Entry models Model tags models ManyToManyField Tag null True bla

1
2
3
4
5
6
7
8
class Entry(models.Model):
....
tags = models.ManyToManyField(Tag, null=True, blank=True)
class Tag(models.Model):
name = models.CharField(max_length=50, unique=True)
slug = models.CharField(max_length=150, editable=False)
...