From: Matthijs Kooijman Date: Mon, 21 Jan 2008 21:42:24 +0000 (+0100) Subject: * Replace maxlength argument to CharField with max_length. Makes the project work... X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=2b9a90d7af0908f440a54987ce6978c307febfaf;p=matthijs%2Fprojects%2Fxerxes.git * Replace maxlength argument to CharField with max_length. Makes the project work with django r7027. --- diff --git a/events/models.py b/events/models.py index 273ed7c..58fd93a 100644 --- a/events/models.py +++ b/events/models.py @@ -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 diff --git a/influences/models.py b/influences/models.py index bda1dc5..d27e0e0 100644 --- a/influences/models.py +++ b/influences/models.py @@ -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()