X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/beb5154606f790915bc56b9cb8af824537cc7d7a..e2a460b0a960df9482701ab10ec135a5cc3c69ac:/src/social/forms.py diff --git a/src/social/forms.py b/src/social/forms.py index b3be6ebda..5c0973c19 100644 --- a/src/social/forms.py +++ b/src/social/forms.py @@ -1,4 +1,3 @@ -# -*- 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. # @@ -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)