mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Merge pull request #213 from felixxm/cleanup-unused
Removed unused variables and imports.
This commit is contained in:
commit
4268ea808a
3 changed files with 3 additions and 4 deletions
|
|
@ -107,10 +107,10 @@ class ConstanceForm(forms.Form):
|
|||
version_hash = hashlib.md5()
|
||||
|
||||
for name, options in settings.CONFIG.items():
|
||||
default, help_text = options[0], options[1]
|
||||
default = options[0]
|
||||
if len(options) == 3:
|
||||
config_type = options[2]
|
||||
if config_type not in settings.ADDITIONAL_FIELDS and not isinstance(options[0], config_type):
|
||||
if config_type not in settings.ADDITIONAL_FIELDS and not isinstance(default, config_type):
|
||||
raise ImproperlyConfigured(_("Default value type must be "
|
||||
"equal to declared config "
|
||||
"parameter type. Please fix "
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ https://docs.djangoproject.com/en/1.8/ref/settings/
|
|||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
import os
|
||||
from datetime import date
|
||||
from decimal import Decimal
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from django.conf.urls import url
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue