Skip to content

Commit

Permalink
Remove import specific suit witget
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Jan 16, 2017
1 parent a5f587b commit 9c9656d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rangefilter/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
from django.utils.html import format_html
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext as _
from django.contrib.admin.widgets import AdminDateWidget, AdminSplitDateTime as BaseAdminSplitDateTime

try:
import pytz
except ImportError:
pytz = None

try:
from suit.widgets import SuitDateWidget as AdminDateWidget
except ImportError:
from django.contrib.admin.widgets import AdminDateWidget, AdminSplitDateTime as BaseAdminSplitDateTime


def make_dt_aware(dt):
if pytz is not None and settings.USE_TZ:
Expand Down

0 comments on commit 9c9656d

Please sign in to comment.