Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix #249 global name 'filer_settings' is not defined

  • Loading branch information...
commit ee7142157733c5f00c7a7f9c00b0a08f5e42c4c7 1 parent 99625ac
@stefanfoulis authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 filer/fields/file.py
View
6 filer/fields/file.py
@@ -11,7 +11,7 @@
from django.utils.safestring import mark_safe
from django.utils.text import truncate_words
from filer.models import File
-from filer.settings import FILER_STATICMEDIA_PREFIX
+from filer import settings as filer_settings
import logging
logger = logging.getLogger(__name__)
@@ -54,7 +54,7 @@ def render(self, name, value, attrs=None):
# ForeignKeyRawIdWidget adds
hidden_input = super(ForeignKeyRawIdWidget, self).render(
name, value, attrs)
- filer_static_prefix = FILER_STATICMEDIA_PREFIX
+ filer_static_prefix = filer_settings.FILER_STATICMEDIA_PREFIX
if not filer_static_prefix[-1] == '/':
filer_static_prefix += '/'
context = {
@@ -84,7 +84,7 @@ def obj_for_value(self, value):
return obj
class Media:
- js = (FILER_STATICMEDIA_PREFIX + 'js/popup_handling.js',)
+ js = (filer_settings.FILER_STATICMEDIA_PREFIX + 'js/popup_handling.js',)
class AdminFileFormField(forms.ModelChoiceField):
Please sign in to comment.
Something went wrong with that request. Please try again.