mirror of
https://github.com/evennia/evennia.git
synced 2026-04-17 21:59:06 +02:00
Updating some models to use max_length instead of the deprecated maxlength.
This commit is contained in:
parent
57d7a8f41a
commit
ea88ace9fa
3 changed files with 12 additions and 12 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue