[open-ils-commits] r55 - constrictor/trunk/constrictor_gui/control
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 26 16:31:53 EST 2008
Author: erickson
Date: 2008-11-26 16:31:49 -0500 (Wed, 26 Nov 2008)
New Revision: 55
Modified:
constrictor/trunk/constrictor_gui/control/models.py
Log:
repaired some django DPI drift
Modified: constrictor/trunk/constrictor_gui/control/models.py
===================================================================
--- constrictor/trunk/constrictor_gui/control/models.py 2008-11-26 21:31:12 UTC (rev 54)
+++ constrictor/trunk/constrictor_gui/control/models.py 2008-11-26 21:31:49 UTC (rev 55)
@@ -17,7 +17,7 @@
class Drone(models.Model):
- address = models.CharField(maxlength=200)
+ address = models.CharField(max_length=200)
port = models.IntegerField()
enabled = models.BooleanField(blank=True)
class Admin:
@@ -26,8 +26,8 @@
return "%s:%d" % (self.address, self.port)
class Plugin(models.Model):
- name = models.CharField(maxlength=100)
- description = models.TextField(maxlength=500)
+ name = models.CharField(max_length=100)
+ description = models.TextField(max_length=500)
class Admin:
pass
def __str__(self):
@@ -35,8 +35,8 @@
class Script(models.Model):
plugin = models.ForeignKey(Plugin)
- name = models.CharField(maxlength=200)
- description = models.TextField(maxlength=500)
+ name = models.CharField(max_length=200)
+ description = models.TextField(max_length=500)
class Admin:
list_display = ('plugin', 'name', 'description')
def __str__(self):
@@ -44,8 +44,8 @@
class Property(models.Model):
plugin = models.ForeignKey(Plugin)
- name = models.CharField(maxlength=100)
- description = models.TextField(maxlength=500)
+ name = models.CharField(max_length=100)
+ description = models.TextField(max_length=500)
class Admin:
list_display = ('plugin', 'name', 'description')
def __str__(self):
More information about the open-ils-commits
mailing list