Skip to content

Commit

Permalink
Merge branch 'release/1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
qoda committed Dec 2, 2014
2 parents 4efc893 + 60d4d05 commit dafedad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
11 changes: 7 additions & 4 deletions export/serializers/csv_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,17 @@ def __iter__(self):

class UnicodeWriter(object):
"""
A CSV writer which will write rows to CSV file "f",
which is encoded in the given encoding.
A CSV writer which will write rows to CSV file "f", which is encoded in
the given encoding.
"""

def __init__(self, f, dialect=csv.excel, encoding='utf-8', **kwds):
def __init__(self, f, dialect=csv.excel, encoding='utf-8',
quoting=csv.QUOTE_ALL, **kwds):
# Redirect output to a queue
self.queue = StringIO.StringIO()
self.writer = csv.writer(self.queue, dialect=dialect, **kwds)
self.writer = csv.writer(
self.queue, dialect=dialect, quoting=quoting, **kwds
)
self.stream = f
self.encoder = codecs.getincrementalencoder(encoding)()

Expand Down
3 changes: 0 additions & 3 deletions export/templates/export/export_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@
</div>
</form>
{% endblock %}


file:///Users/jonathanb/Projects/Kagiso/ZAlebs/eggs/jmbo-1.0.14-py2.7.egg/jmbo/templates/admin
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-export',
version='1.0.3',
version='1.0.4',
description='Django app allowing for filtered exporting of model data.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
Expand Down

0 comments on commit dafedad

Please sign in to comment.