Add migration for longer timezone

Signed-off-by: Etzelia <etzelia@hotmail.com>
pull/2/head
Etzelia 2021-03-27 20:36:22 -05:00
parent f91bab4006
commit 0fe5f20284
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
2 changed files with 5 additions and 34 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,7 @@ from datetime import datetime
logger = logging.getLogger(__name__)
class MinecraftManagerUser(User):
class Meta:
@ -39,7 +40,7 @@ class UserSettings(models.Model):
auth_user = models.OneToOneField(User, on_delete=models.CASCADE, null=True, blank=True)
default_results = models.SmallIntegerField("Default Results", default=10, choices=RESULT_OPTIONS)
default_theme = models.CharField("Theme", max_length=2, default='DE', choices=THEME_OPTIONS)
default_timezone = models.CharField("Timezone", max_length=20, default='UTC', choices=TIMEZONES)
default_timezone = models.CharField("Timezone", max_length=50, default='UTC', choices=TIMEZONES)
search_player_ip = models.BooleanField("Include IP in Player search", default=False)
show_timestamp_chat = models.BooleanField("Show Timestamp By Chat", default=False)
last_ip = models.CharField(max_length=30, default="127.0.0.1", editable=False)