text: """Post models."""
  
  from django.db import models
  from django.contrib.auth.models import User
  
  
  class Post(models.Model):
      """Post model."""
  
      user = models.ForeignKey(User, on_delete=models.CASCADE)
      profile = models.ForeignKey('users.Profile', on_delete=models.CASCADE)
  
      title = models.CharField(max_length=255)
      photo = models.ImageField(upload_to='posts/photos')
  
      created_at = models.DateTimeField(auto_now_add=True)
      modified_at = models.DateTimeField(auto_now=True)
  
      def __str__(self):
          """Return title and username."""
          return '{} by @{}'.format(self.title, self.user.username)
  
  
  
  