Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (10 sloc) 0.404 kB
from django.db import models
class TodoList(models.Model):
name = models.CharField(max_length=100)
def __unicode__(self):
return self.name
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 self.name + " (" + str(self.list) + ")"
Jump to Line
Something went wrong with that request. Please try again.