from django.db import models


class Banner(models.Model):
    title = models.TextField()
    text = models.TextField()
    post = models.ForeignKey('Post')

    def __str__(self):
        return self.title