Skip to content

Commit

Permalink
Merge pull request #2 from alexsukhrin/fix-import-ugettext_lazy
Browse files Browse the repository at this point in the history
 Remove usage of ugettext_lazy andreynovikov#10
  • Loading branch information
alexsukhrin authored Jul 6, 2023
2 parents cc2c558 + 211a1cf commit 1710ba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions daterangefilter/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _

try:
from django.utils.translation import ugettext_lazy as _
except ImportError:
from django.utils.translation import gettext_lazy as _

class DateRangeFilterAppConfig(AppConfig):
name = 'daterangefilter'
Expand Down

0 comments on commit 1710ba2

Please sign in to comment.