* Replace maxlength argument to CharField with max_length. Makes the project work...
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 21 Jan 2008 21:42:24 +0000 (22:42 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 21 Jan 2008 21:42:24 +0000 (22:42 +0100)
events/models.py
influences/models.py

index 273ed7cc397b1219343db9796790e5411d620553..58fd93a93a3175fb3dbaee1984710fae6bec6693 100644 (file)
@@ -2,8 +2,8 @@ from django.db import models
 
 # Create your models here.
 class Event(models.Model):
-       name = models.CharField(maxlength=50)
-       title = models.CharField(maxlength=100)
+       name = models.CharField(max_length=50)
+       title = models.CharField(max_length=100)
        slots = models.IntegerField()
 
        def __str__(self):
@@ -19,8 +19,8 @@ class Event(models.Model):
                )
 
 class Person(models.Model):
-       first_name = models.CharField(maxlength=255)
-       last_name  = models.CharField(maxlength=255)
+       first_name = models.CharField(max_length=255)
+       last_name  = models.CharField(max_length=255)
 
        def __str__(self):
                return self.first_name + ' ' + self.last_name
index bda1dc56b1bcd943a8faca2287c97919e7e22555..d27e0e0aae73d58e5f452556206b1ecdcaeac1ff 100644 (file)
@@ -3,7 +3,7 @@ from ee.base.models import EEObject
 
 # Create your models here.
 class Character(EEObject):
-       name = models.CharField(maxlength=255)
+       name = models.CharField(max_length=255)
        def __str__(self):
                return self.name
 
@@ -11,7 +11,7 @@ class Character(EEObject):
                pass
 
 class Influence(EEObject):
-       contact     = models.CharField(maxlength=255)
+       contact     = models.CharField(max_length=255)
        character   = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True)
        description = models.TextField()