old_contents: from django.contrib.auth.models import AbstractUser
  from django.contrib.auth.models import UserManager
  from django.db import models
  from datetime import datetime
  
  
  class CustomUserManager(UserManager):
  
      def agree_email_notification(self):
          return self.filter(email_notification=True)
  
  
  class User(AbstractUser):
  
      objects = CustomUserManager()
      created_at = models.DateTimeField(auto_now_add=True)
      updated_at = models.DateTimeField(auto_now=True)
  
      email_notification = models.BooleanField(
          default=True,
      )
  
      @property
      def today_diary(self):
          today = datetime.now().strftime("%Y/%m/%d")
          return self.diary_set.get_or_none(datetime=today)
  
      def monthly_words(self, **kwargs):
          year = kwargs.get("year")
          month = kwargs.get("month")
          datetime = year+"/"+month+"/"
          diaries = self.diary_set.filter(datetime__contains=datetime)
  
          monthly_words = []
          for diary in diaries:
              monthly_words += diary.used_words
          return monthly_words
  
      def monthly_words_count(self, **kwargs):
          monthly_words = self.monthly_words(
              **kwargs,
          )
          monthly_words_count = len(set(monthly_words))
          return monthly_words_count
  
new_contents: from django.contrib.auth.models import AbstractUser
  from django.contrib.auth.models import UserManager
  from django.db import models
  from datetime import datetime
  
  
  class CustomUserManager(UserManager):
  
      def agree_email_notification(self):
          return self.filter(email_notification=True)
  
  
  class User(AbstractUser):
  
      objects = CustomUserManager()
      created_at = models.DateTimeField(auto_now_add=True)
      updated_at = models.DateTimeField(auto_now=True)
  
      email_notification = models.BooleanField(
          default=True,
      )
  
      @property
      def today_diary(self):
          today = datetime.now().strftime("%Y/%m/%d")
          return self.diary_set.get_or_none(datetime=today)
  
      def monthly_words(self, **kwargs):
          year = kwargs.get("year")
          month = kwargs.get("month")
          datetime = year+"/"+month+"/"
          diaries = self.diary_set.filter(datetime__contains=datetime)
  
          monthly_words = []
          for diary in diaries:
              monthly_words += diary.used_words
          return monthly_words
  
      def monthly_words_count(self, **kwargs):
          monthly_words = self.monthly_words(**kwargs)
          monthly_words_count = len(set(monthly_words))
          return monthly_words_count
  
subject: fix User model: remove comma in monthly_words_count function