X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/465ee0b4cfa68b5d7e1bd8c8752e69a0f6783215..fb91cca331c5214a808d27a283b5dad2e4fc73d1:/fnpdjango/actions.py?ds=sidebyside diff --git a/fnpdjango/actions.py b/fnpdjango/actions.py index 1e1316a..a6da12b 100644 --- a/fnpdjango/actions.py +++ b/fnpdjango/actions.py @@ -1,16 +1,7 @@ # Source: https://gist.github.com/jeremyjbowers/e8d007446155c12033e6 -from __future__ import unicode_literals - import csv from django.http import HttpResponse -from django.utils.translation import ugettext_lazy as _ - -try: - unicode -except NameError: - pass -else: - str = unicode +from django.utils.translation import gettext_lazy as _ def export_as_csv_action(description=_("Export selected objects as CSV file"), fields=None, exclude=None, header=True):