[open-ils-commits] r1439 - in servres/trunk/conifer: . syrup syrup/views (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 5 15:30:43 EDT 2011
Author: artunit
Date: 2011-05-05 15:30:38 -0400 (Thu, 05 May 2011)
New Revision: 1439
Modified:
servres/trunk/conifer/README
servres/trunk/conifer/syrup/models.py
servres/trunk/conifer/syrup/views/admin.py
Log:
add support for notes that are course-specific
Modified: servres/trunk/conifer/README
===================================================================
--- servres/trunk/conifer/README 2011-05-05 18:47:34 UTC (rev 1438)
+++ servres/trunk/conifer/README 2011-05-05 19:30:38 UTC (rev 1439)
@@ -66,3 +66,11 @@
* 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
Modified: servres/trunk/conifer/syrup/models.py
===================================================================
--- servres/trunk/conifer/syrup/models.py 2011-05-05 18:47:34 UTC (rev 1438)
+++ servres/trunk/conifer/syrup/models.py 2011-05-05 19:30:38 UTC (rev 1439)
@@ -243,6 +243,7 @@
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']
Modified: servres/trunk/conifer/syrup/views/admin.py
===================================================================
--- servres/trunk/conifer/syrup/views/admin.py 2011-05-05 18:47:34 UTC (rev 1438)
+++ servres/trunk/conifer/syrup/views/admin.py 2011-05-05 19:30:38 UTC (rev 1439)
@@ -16,7 +16,7 @@
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')
More information about the open-ils-commits
mailing list