from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Post(models.Model):
    # id
    title = models.CharField(max_length=300)
    news = models.TextField()
    image = models.ImageField(upload_to='posts')
    date = models.DateField(auto_now_add=True)

    def __str__(self):
        return self.title