Updating some models to use max_length instead of the deprecated maxlength.

This commit is contained in:
Greg Taylor 2008-02-09 02:35:28 +00:00
parent 57d7a8f41a
commit ea88ace9fa
3 changed files with 12 additions and 12 deletions

View file

@ -5,8 +5,8 @@ class CommandAlias(models.Model):
Command aliases. If the player enters the value equal to user_input, the
command denoted by equiv_command is used instead.
"""
user_input = models.CharField(maxlength=50)
equiv_command = models.CharField(maxlength=50)
user_input = models.CharField(max_length=50)
equiv_command = models.CharField(max_length=50)
class Admin:
list_display = ('user_input', 'equiv_command',)
@ -19,7 +19,7 @@ class ConfigValue(models.Model):
"""
Experimental new config model.
"""
conf_key = models.CharField(maxlength=100)
conf_key = models.CharField(max_length=100)
conf_value = models.TextField()
class Admin: