# 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
self.cleaned_data['picture_xml_file'] = \
ContentFile(self.cleaned_data['picture_xml'].encode('utf-8'))
else:
self.cleaned_data['picture_xml_file'] = \
ContentFile(self.cleaned_data['picture_xml'].encode('utf-8'))
else: