mirror of
https://github.com/Rushilwiz/todos.git
synced 2025-04-09 23:00:17 -04:00
11 lines
330 B
Python
11 lines
330 B
Python
from django.db import models
|
|
|
|
# Create your models here.
|
|
class Task (models.Model):
|
|
id = models.AutoField(primary_key=True)
|
|
title = models.CharField(max_length=200)
|
|
complete = models.BooleanField(default=False)
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return self.title |