from django.db import models


class Tag(models.Model):

    name = models.CharField(
        max_length=256,
    )

    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    @property
    def full_name(self):
        return "#{name}".format(name=self.name)

    def __str__(self):
        return self.full_name

@@ -23,16 +23,47 @@
 models%0A%0A
+from posts.models import Post%0A%0A
 %0Aclass T
@@ -139,16 +139,60 @@
 6,%0A    )
+%0A    post_set = models.ManyToManyField(Post)
 %0A%0A    cr

update Tag model: add ManyToMany Relationship with Post