fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
733a35d
)
Fixes #3916: Erroneous ONIX file.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 29 Mar 2019 13:53:47 +0000
(14:53 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 29 Mar 2019 13:53:47 +0000
(14:53 +0100)
src/isbn/management/commands/export_onix.py
patch
|
blob
|
history
diff --git
a/src/isbn/management/commands/export_onix.py
b/src/isbn/management/commands/export_onix.py
index
386dd1b
..
a78e882
100644
(file)
--- a/
src/isbn/management/commands/export_onix.py
+++ b/
src/isbn/management/commands/export_onix.py
@@
-1,5
+1,3
@@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.core.management.base import BaseCommand
from django.utils import timezone
@@
-113,7
+111,7
@@
class Command(BaseCommand):
for record in ONIXRecord.objects.all():
xml += self.render_product(record)
xml += FOOTER
for record in ONIXRecord.objects.all():
xml += self.render_product(record)
xml += FOOTER
- print(xml
.encode('utf-8')
)
+ print(xml)
def render_product(self, record):
if record.product_form_detail:
def render_product(self, record):
if record.product_form_detail: