fix timezone setting, fix invalid default for CharField

This commit is contained in:
Xevion
2020-10-31 12:26:55 -05:00
parent ec785d5360
commit f7cde0b4dc
2 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'CST'
TIME_ZONE = 'US/Central'
USE_I18N = True

View File

@@ -13,10 +13,10 @@ class ServedDirectory(models.Model):
The regex pattern can be matched against the file path (False), or just the filename (True).
"""
id = models.UUIDField(default=uuid.uuid4, primary_key=True, editable=False, unique=True)
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True)
path = models.CharField('Directory Path', max_length=260)
recursive = models.BooleanField('Files Are Matched Recursively', default=False)
regex_pattern = models.CharField('RegEx Matching Pattern', max_length=100, default=None)
regex_pattern = models.CharField('RegEx Matching Pattern', max_length=100, default='')
regex = models.BooleanField('Directory RegEx Option', default=False)
match_filename = models.BooleanField('RegEx Matches Against Filename', default=True)