2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

rollback testing dsaveguards and add docs

This commit is contained in:
Matthias
2022-05-19 01:43:28 +02:00
parent 38f8e9c9ab
commit 890a5cd1e6
2 changed files with 2 additions and 17 deletions

View File

@ -13,7 +13,6 @@ import hashlib
import base64
from secrets import compare_digest
from datetime import datetime, timedelta
import warnings
from django.apps import apps
from django.db import models, transaction
@ -1696,11 +1695,6 @@ class ColorTheme(models.Model):
def get_color_themes_choices(cls):
""" Get all color themes from static folder """
# Check that settings exsist
if not os.path.exists(settings.STATIC_COLOR_THEMES_DIR):
warnings.warn('No Theme-data found')
return []
# Get files list from css/color-themes/ folder
files_list = []
for file in os.listdir(settings.STATIC_COLOR_THEMES_DIR):