mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-06 15:16:32 -06:00
fix timezone setting, fix invalid default for CharField
This commit is contained in:
@@ -107,7 +107,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
TIME_ZONE = 'CST'
|
TIME_ZONE = 'US/Central'
|
||||||
|
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ class ServedDirectory(models.Model):
|
|||||||
The regex pattern can be matched against the file path (False), or just the filename (True).
|
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)
|
path = models.CharField('Directory Path', max_length=260)
|
||||||
recursive = models.BooleanField('Files Are Matched Recursively', default=False)
|
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)
|
regex = models.BooleanField('Directory RegEx Option', default=False)
|
||||||
match_filename = models.BooleanField('RegEx Matches Against Filename', default=True)
|
match_filename = models.BooleanField('RegEx Matches Against Filename', default=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user