models.py 385 B

1234567891011121314
  1. from __future__ import unicode_literals
  2. from django.db import models
  3. # Create your models here.
  4. class Task(models.Model):
  5. """task model"""
  6. title = models.CharField(max_length=200)
  7. # description = models.TextField(blank=True)
  8. created = models.DateTimeField(auto_now=True)
  9. is_completed = models.BooleanField(default=False)
  10. class Meta:
  11. db_table = "task"