text: from django.contrib.auth.models import User
  from django.db import models
  from django.db.models.signals import post_save
  from django.dispatch import receiver
  
  class Profile(models.Model):
      """Model to handle user and who they follow"""
      objects = models.Manager() # this is needed to avoid VS Code error
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      follows = models.ManyToManyField(
          "self", related_name="followed_by", symmetrical=False, blank=True
      )
  
      def __str__(self):
          return self.user.username
  
  @receiver(post_save, sender=User)
  def create_profile(sender, instance, created, **kwargs):
      if created:
          user_profile = Profile(user=instance)
          user_profile.save()
          user_profile.follows.add(instance.profile)
          user_profile.save()
          
  class Twt(models.Model):
      user = models.ForeignKey(User, related_name='twts', on_delete=models.DO_NOTHING)
      body = models.CharField(max_length=140)
      created_at = models.DateTimeField(auto_now_add=True)
      
      class Meta:
          ordering = ['-created_at']
      
      def __str__(self):
          return (f'{self.user} '
                  f'{self.created_at:%Y-%m-%d %H:%M}: '
                  f'{self.body[:15]}...'
                  )
          