X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c2e8051452fa55db096553cbe5ae622fc363d481..55e6abd52da631d0a36ed13e12f5e1dfb2af0d92:/src/isbn/forms.py?ds=inline

diff --git a/src/isbn/forms.py b/src/isbn/forms.py
index 5f2940c2f..4bca0100b 100644
--- a/src/isbn/forms.py
+++ b/src/isbn/forms.py
@@ -1,9 +1,11 @@
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
 from datetime import date
 import json
 from urllib.request import urlopen
 
 from django import forms
-from django.utils.translation import ugettext_lazy as _
 from slugify import slugify
 
 from isbn.management.commands.import_onix import UNKNOWN
@@ -13,8 +15,8 @@ from librarian.parser import WLDocument
 
 
 class WLISBNForm(forms.Form):
-    platform_url = forms.URLField(label=u'Adres na platformie')
-    publishing_date = forms.DateField(label=u'Data publikacji', initial=date.today)
+    platform_url = forms.URLField(label='Adres na platformie')
+    publishing_date = forms.DateField(label='Data publikacji', initial=date.today)
 
     def prepare_data(self):
         platform_url = self.cleaned_data['platform_url']
@@ -60,23 +62,23 @@ class FNPISBNForm(forms.Form):
         ('EPUB', 'ePUB'),
         ('MOBI', 'MOBI'),
         ('TXT', 'TXT'),
-        ('SOFT', _('Soft cover book')),
+        ('SOFT', 'Miękka oprawa'),
     )
     LANGUAGE_CHOICES = (
-        ('pol', u'polski'),
-        ('eng', u'angielski'),
-        ('ger', u'niemiecki'),
-        ('fre', u'francuski'),
+        ('pol', 'polski'),
+        ('eng', 'angielski'),
+        ('ger', 'niemiecki'),
+        ('fre', 'francuski'),
     )
 
     title = forms.CharField()
-    authors = forms.CharField(help_text=u'wartości oddzielone przecinkami lub „Wielu autorów”')
+    authors = forms.CharField(help_text='wartości oddzielone przecinkami lub „Wielu autorów”')
     formats = forms.MultipleChoiceField(choices=FORMAT_CHOICES)
     language = forms.ChoiceField(choices=LANGUAGE_CHOICES)
     publishing_date = forms.DateField()
 
     def prepare_author(self, name):
-        if name == u'Wielu autorów':
+        if name == 'Wielu autorów':
             return {'role': 'A01', 'unnamed': '04'}
         if ' ' in name:
             first_name, last_name = [s.strip() for s in name.rsplit(' ', 1)]