* make yourself a course.
* click on all of the links and see what they do.
+
+If you have been following along
+------------------------------
+
+If you have an existing database, use south to deal with fields that have been added:
+
+./manage.py schemamigration --auto conifer.syrup
+./manage.py migrate conifer.syrup
code = m.CharField(max_length=64, unique=True)
name = m.CharField(max_length=1024)
department = m.ForeignKey(Department)
+ coursenotes = m.TextField('Course Notes', blank=True, null=True)
class Meta:
ordering = ['code']
class Index:
title = _('Courses')
all = models.Course.objects.order_by('code', 'name').all
- cols = ['code', 'name', 'department']
+ cols = ['code', 'name', 'department', 'coursenotes']
links = [0, 1]
clean_name = strip_and_nonblank('code')