Allow disable paypal.
[wolnelektury.git] / src / picture / forms.py
index 2ad47b0..0c03041 100644 (file)
@@ -1,9 +1,8 @@
-# -*- coding: utf-8 -*-
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django import forms
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django import forms
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 from picture.models import Picture
 
 
 from picture.models import Picture
 
 
@@ -35,5 +34,6 @@ class PictureImportForm(forms.Form):
         return super(PictureImportForm, self).clean()
 
     def save(self, commit=True, **kwargs):
         return super(PictureImportForm, self).clean()
 
     def save(self, commit=True, **kwargs):
-        return Picture.from_xml_file(self.cleaned_data['picture_xml_file'], image_file=self.cleaned_data['picture_image_file'],
-                                     overwrite=True, **kwargs)
+        return Picture.from_xml_file(
+            self.cleaned_data['picture_xml_file'], image_file=self.cleaned_data['picture_image_file'],
+            overwrite=True, **kwargs)