Skip to content

Commit

Permalink
Taking care of DeprecationWarning regarding the renaming of django.fo…
Browse files Browse the repository at this point in the history
…rms.util -> django.forms.utils.
  • Loading branch information
gregmuellegger committed Mar 31, 2014
1 parent 7a11768 commit 281371e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion floppyforms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

import django
from django import forms
from django.forms.util import to_current_timezone
try:
from django.forms.utils import to_current_timezone
except ImportError:
# Fall back to old module name for Django <= 1.5
from django.forms.util import to_current_timezone
from django.forms.widgets import FILE_INPUT_CONTRADICTION
from django.conf import settings
from django.template import loader
Expand Down

0 comments on commit 281371e

Please sign in to comment.