from django.db import models

# Create your models here.
class Blog(models.Model):
    title=models.CharField(blank=False, null=False, max_length=150)
    text=models.TextField(blank=True)
    created_datetime=models.DateTimeField(auto_now_add=True)
    updated_datetime=models.DateTimeField(auto_now=True)

    def _str_(self):
        return self.title