[open-ils-commits] r7541 -
trunk/Open-ILS/admin/ils_admin/setup/ils_data
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 13 00:32:45 EDT 2007
Author: erickson
Date: 2007-07-13 00:27:49 -0400 (Fri, 13 Jul 2007)
New Revision: 7541
Modified:
trunk/Open-ILS/admin/ils_admin/setup/ils_data/models.py
Log:
pacified django by altering the foreignkey column name to what it is expecting
Modified: trunk/Open-ILS/admin/ils_admin/setup/ils_data/models.py
===================================================================
--- trunk/Open-ILS/admin/ils_admin/setup/ils_data/models.py 2007-07-13 02:00:40 UTC (rev 7540)
+++ trunk/Open-ILS/admin/ils_admin/setup/ils_data/models.py 2007-07-13 04:27:49 UTC (rev 7541)
@@ -6,10 +6,6 @@
CHAR_MAXLEN=200 # just provide a sane default
-#PG_SCHEMAS = "actor, permission, public, config"
-
-
-
""" --------------------------------------------------------------
Permission tables
-------------------------------------------------------------- """
@@ -143,7 +139,7 @@
class OrgAddress(models.Model):
valid = models.BooleanField()
org_unit_id = models.ForeignKey('OrgUnit', db_column='org_unit')
- address_type = models.CharField(blank=False, maxlength=CHAR_MAXLEN, default='MAILING')
+ address_type = models.CharField(blank=False, maxlength=CHAR_MAXLEN, default=_('MAILING'))
street1 = models.CharField(blank=False, maxlength=CHAR_MAXLEN)
street2 = models.CharField(maxlength=CHAR_MAXLEN)
city = models.CharField(blank=False, maxlength=CHAR_MAXLEN)
@@ -278,10 +274,10 @@
name = models.CharField(maxlength=CHAR_MAXLEN, null=False, blank=False)
xpath = models.TextField(null=False, blank=False)
weight = models.IntegerField(null=False, blank=False)
- format = models.ForeignKey('XmlTransform')
+ format_id = models.ForeignKey('XmlTransform', db_column='format')
class Admin:
- search_fields = ['name', 'format', 'field_class']
- list_display = ('field_class', 'name', 'format')
+ search_fields = ['name', 'field_class', 'format_id']
+ list_display = ('field_class', 'name', 'format_id')
class Meta:
db_table = 'metabib_field'
ordering = ['field_class', 'name']
@@ -419,3 +415,5 @@
+
+
More information about the open-ils-commits
mailing list