from __future__ import unicode_literals

from django.db import models 

from django.utils import timezone

# Create your models here.
class news(models.Model): 
    title = models.CharField(max_length=200) 
    text = models.TextField()
    created_date = models.DateTimeField(default=timezone.now)
    published_date = models.DateTimeField(default=timezone.now) 
    
    def __str__(self): 
        return self.title
