X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b9dc6590aa12ae1b04e11dbb57684c5630c1e3bd..5c14b2f1216cf266efd63f4de84e3f83bb99c9ff:/src/social/forms.py?ds=inline

diff --git a/src/social/forms.py b/src/social/forms.py
old mode 100755
new mode 100644
index b3be6ebda..1e2462ac0
--- a/src/social/forms.py
+++ b/src/social/forms.py
@@ -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
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 from catalogue.models import Tag
 from catalogue import utils
@@ -26,7 +25,7 @@ class ObjectSetsForm(forms.Form):
         self._obj = obj
         self._user = user
         data = kwargs.setdefault('data', {})
-        if 'tags' not in data and user.is_authenticated():
+        if 'tags' not in data and user.is_authenticated:
             data['tags'] = ', '.join(
                 obj.tags.filter(category='set', user=user).exclude(name__in=(None, '')).values_list('name', flat=True))
         super(ObjectSetsForm, self).__init__(*args, **kwargs)