fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Django 4
[fnpdjango.git]
/
fnpdjango
/
actions.py
diff --git
a/fnpdjango/actions.py
b/fnpdjango/actions.py
index
1e1316a
..
a6da12b
100644
(file)
--- a/
fnpdjango/actions.py
+++ b/
fnpdjango/actions.py
@@
-1,16
+1,7
@@
# Source: https://gist.github.com/jeremyjbowers/e8d007446155c12033e6
# Source: https://gist.github.com/jeremyjbowers/e8d007446155c12033e6
-from __future__ import unicode_literals
-
import csv
from django.http import HttpResponse
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):
def export_as_csv_action(description=_("Export selected objects as CSV file"), fields=None, exclude=None, header=True):