From: erickson Date: Wed, 26 Nov 2008 21:31:49 +0000 (+0000) Subject: repaired some django DPI drift X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1027b370fc5f0b5ab81f1c38fcad808594259686;p=working%2Frandom.git repaired some django DPI drift git-svn-id: svn://svn.open-ils.org/ILS-Contrib/constrictor/trunk@55 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/constrictor_gui/control/models.py b/constrictor_gui/control/models.py index 927d5ed25..601360da2 100644 --- a/constrictor_gui/control/models.py +++ b/constrictor_gui/control/models.py @@ -17,7 +17,7 @@ from django.db import models 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 @@ class Drone(models.Model): 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 Plugin(models.Model): 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 Script(models.Model): 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):