old_contents: from django.db import models
  from django.conf import settings
  
  from tags.models import Tag
  
  
  class Post(models.Model):
      user = models.ForeignKey(
              settings.AUTH_USER_MODEL,
              )
      image = models.ImageField()
      content = models.TextField()
  
      create_at = models.DateTimeField(auto_now_add=True,)
      update_at = models.DateTimeField(auto_now=True,)
  
      hash_id = models.CharField(
              max_length=8,
              blank=True,
              null=True,
              unique=True,
              )
  
      tag_set = models.ManyToManyField(
              Tag,
              )
  
      like_user_set = models.ManyToManyField(
              settings.AUTH_USER_MODEL,
              related_name='like_post_set',
              through="Like",
              )
  
      def init_hash_id(self):
          from utils import get_encoded_hash_id
          self.hash_id = get_encoded_hash_id(self)
          self.save()
  
new_contents: from django.db import models
  from django.conf import settings
  
  from tags.models import Tag
  
  class Post(models.Model):
      user = models.ForeignKey(
              settings.AUTH_USER_MODEL,
              )
      image = models.ImageField()
      content = models.TextField()
  
      create_at = models.DateTimeField(auto_now_add=True,)
      update_at = models.DateTimeField(auto_now=True,)
  
      hash_id = models.CharField(
              max_length=8,
              blank=True,
              null=True,
              unique=True,
              )
  
      tag_set = models.ManyToManyField(
              Tag,
              )
  
      like_user_set = models.ManyToManyField(
              settings.AUTH_USER_MODEL,
              related_name='like_post_set',
              through="Like",
              )
  
      def init_hash_id(self):
          from utils import get_encoded_hash_id
          self.hash_id = get_encoded_hash_id(self)
          self.save()
  
subject: update post Model: add like_user_set