from django.db import models

# Create your models here.
class Article(models.Model):
    auther =    models.ForeignKey(
    'auth.User',
    on_delete=models.CASCADE,
    )
    title = models.CharField(max_length=300)
    text = models.TextField()

    def __str__(self):
        return self.title
