Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 404 Bytes
from django.db import models
class TodoList(models.Model):
name = models.CharField(max_length=100)
def __unicode__(self):
class TodoItem(models.Model):
name = models.CharField(max_length=150, help_text="e.g. Buy milk, wash dog etc")
list = models.ForeignKey(TodoList)
def __unicode__(self):
return + " (" + str(self.list) + ")"
Something went wrong with that request. Please try again.