[open-ils-commits] r123 - servres/trunk/conifer/syrup (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 17 23:02:23 EST 2009
Author: gfawcett
Date: 2009-02-17 23:02:21 -0500 (Tue, 17 Feb 2009)
New Revision: 123
Modified:
servres/trunk/conifer/syrup/models.py
Log:
relaxed model a bit
Modified: servres/trunk/conifer/syrup/models.py
===================================================================
--- servres/trunk/conifer/syrup/models.py 2009-02-14 22:24:17 UTC (rev 122)
+++ servres/trunk/conifer/syrup/models.py 2009-02-18 04:02:21 UTC (rev 123)
@@ -234,7 +234,7 @@
# break Item up into multiple tables. But there are other ways we
# can specify the constraints.
title = m.CharField(max_length=255,db_index=True)
- author = m.CharField(max_length=255,db_index=True)
+ author = m.CharField(max_length=255,db_index=True, blank=True, null=True)
source = m.CharField(max_length=255,db_index=True, blank=True, null=True)
volume_title = m.CharField(max_length=255,db_index=True, blank=True, null=True)
content_notes = m.CharField(max_length=255, blank=True, null=True)
@@ -248,7 +248,7 @@
local_control_key = m.CharField(max_length=30, blank=True, null=True)
url = m.URLField(blank=True, null=True)
- mime_type = m.CharField(max_length=100,default='text/html')
+ mime_type = m.CharField(max_length=100,default='text/html', blank=True, null=True)
isbn = m.CharField(max_length=13,db_index=True, blank=True, null=True)
issn = m.CharField(max_length=8,db_index=True, blank=True, null=True)
@@ -277,7 +277,7 @@
('ACTIVE', 'Active'), # available
('INACTIVE', 'InActive')) # no longer on rsrv.
phys_status = m.CharField(max_length=9,
- null=True,
+ null=True, blank=True,
choices=STATUS_CHOICE,
default=None) # null if not physical item.
More information about the open-ils-commits
mailing list