-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHANGE] Move settings from
local.py
to DB
- Loading branch information
Showing
11 changed files
with
176 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
afat/migrations/0025_setting_default_fatlink_expiry_time_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Generated by Django 4.2.16 on 2024-11-08 19:45 | ||
|
||
# Django | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("afat", "0024_doctrines_and_settings"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="setting", | ||
name="default_fatlink_expiry_time", | ||
field=models.PositiveIntegerField( | ||
default=60, | ||
help_text="Default expiry time for clickable FAT links in minutes. (Default: 60 minutes)", | ||
verbose_name="Default FAT link expiry time", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="setting", | ||
name="default_fatlink_reopen_duration", | ||
field=models.PositiveIntegerField( | ||
default=60, | ||
help_text="Default time in minutes a FAT link is re-opened for. (Default: 60 minutes)", | ||
verbose_name="Default FAT link reopen duration", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="setting", | ||
name="default_fatlink_reopen_grace_time", | ||
field=models.PositiveIntegerField( | ||
default=60, | ||
help_text="Default time in minutes a FAT link can be re-opened after it is expired. (Default: 60 minutes)", | ||
verbose_name="Default FAT link reopen grace time", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="setting", | ||
name="default_log_duration", | ||
field=models.PositiveIntegerField( | ||
default=60, | ||
help_text="Default time in days a log entry is kept. (Default: 60 days)", | ||
verbose_name="Default log duration", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="setting", | ||
name="use_doctrines_from_fittings_module", | ||
field=models.BooleanField( | ||
db_index=True, | ||
default=False, | ||
help_text="Whether to use the doctrines from the Fittings modules in the doctrine dropdown. Note: The fittings module needs to be installed for this.", | ||
verbose_name="Use doctrines from fittings module", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.