from django.db import models
from django.utils import timezone

# Create your models here.
class Todo(models.Model):
    added_date = models.DateTimeField(auto_now_add=True)
    text = models.CharField(max_length=200)

    @classmethod
    def create(cls, text):
        todo = cls(text=text)
        return todo