Skip to content

Commit daecd7c

Browse files
committed
fix #39: explicit seek at 0.
1 parent 0462405 commit daecd7c

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Change log
22
================================================================================
33

4+
0.0.8 - unreleased
5+
--------------------------------------------------------------------------------
6+
7+
Added
8+
********************************************************************************
9+
10+
#. `issue 38 <https://github.com/pyexcel/django-excel/issues/38>`_, Support
11+
unicode code as download file name
12+
413
0.0.7 - 29.06.2017
514
--------------------------------------------------------------------------------
615

django_excel.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
overrides: "pyexcel.yaml"
22
name: "django-excel"
3-
version: 0.0.7
4-
current_version: 0.0.7
3+
version: 0.0.8
4+
current_version: 0.0.8
55
release: 0.0.7
66
webframework: Django
77
dependencies:
8-
- pyexcel-webio>=0.0.9
8+
- pyexcel-webio>=0.1.0
99
- Django>=1.6.1
1010
extra_dependencies:
1111
- xls:
12-
- pyexcel-xls>=0.1.0
12+
- pyexcel-xls>=0.4.0
1313
- xlsx:
14-
- pyexcel-xlsx>=0.1.0
14+
- pyexcel-xlsx>=0.4.0
1515
- ods:
16-
- pyexcel-ods3>=0.1.0
16+
- pyexcel-ods3>=0.4.0
1717
description:
1818
A django middleware that provides one application programming interface to read and write data in different excel file formats

django_excel/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ExcelMixin(webio.ExcelInput):
2525
def get_params(self, **keywords):
2626
extension = self.name.split(".")[-1]
2727
keywords['file_type'] = extension
28+
self.file.seek(0)
2829
content = self.file.read()
2930
if content:
3031
keywords['file_content'] = content

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
project = u'django-excel'
2525
copyright = u'2015-2017 Onni Software Ltd.'
2626
version = '0.0.7'
27-
release = '0.0.7'
27+
release = '0.0.8'
2828
exclude_patterns = []
2929
pygments_style = 'sphinx'
3030
import os # noqa

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:Source code: http://github.com/pyexcel/django-excel.git
1111
:Issues: http://github.com/pyexcel/django-excel/issues
1212
:License: New BSD License
13+
:Development: |release|
1314
:Released: |version|
1415
:Generated: |today|
1516

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pyexcel-webio>=0.0.9
1+
pyexcel-webio>=0.1.0
22
Django>=1.6.1

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
NAME = 'django-excel'
1212
AUTHOR = 'C.W.'
13-
VERSION = '0.0.7'
13+
VERSION = '0.0.8'
1414
EMAIL = 'wangc_2011@hotmail.com'
1515
LICENSE = 'New BSD'
1616
DESCRIPTION = (
@@ -55,16 +55,16 @@
5555
]
5656

5757
INSTALL_REQUIRES = [
58-
'pyexcel-webio>=0.0.9',
58+
'pyexcel-webio>=0.1.0',
5959
'Django>=1.6.1',
6060
]
6161

6262

6363
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
6464
EXTRAS_REQUIRE = {
65-
'xls': ['pyexcel-xls>=0.1.0'],
66-
'xlsx': ['pyexcel-xlsx>=0.1.0'],
67-
'ods': ['pyexcel-ods3>=0.1.0'],
65+
'xls': ['pyexcel-xls>=0.4.0'],
66+
'xlsx': ['pyexcel-xlsx>=0.4.0'],
67+
'ods': ['pyexcel-ods3>=0.4.0'],
6868
}
6969

7070

0 commit comments

Comments
 (0)