Skip to content

Commit

Permalink
Restore Django 1.6- tests, though this begs for deprecation now..
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed May 1, 2017
1 parent 34c69ed commit 2ca7187
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fluent_contents/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
from django.forms.widgets import Widget
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.forms.utils import flatatt
from django.utils.html import escape
from fluent_contents.models import get_parent_language_code
from fluent_contents.models.managers import get_parent_active_language_choices
from fluent_utils.django_compat import smart_text

try:
from django.forms.utils import flatatt # Django 1.7+
except ImportError:
from django.forms.util import flatatt # Django 1.6-


class PlaceholderFieldWidget(Widget):
"""
Expand Down

0 comments on commit 2ca7187

Please sign in to comment.