fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no background for banner
[wolnelektury.git]
/
src
/
social
/
forms.py
diff --git
a/src/social/forms.py
b/src/social/forms.py
index
3891858
..
b3be6eb
100755
(executable)
--- a/
src/social/forms.py
+++ b/
src/social/forms.py
@@
-27,7
+27,8
@@
class ObjectSetsForm(forms.Form):
self._user = user
data = kwargs.setdefault('data', {})
if 'tags' not in data and user.is_authenticated():
self._user = user
data = kwargs.setdefault('data', {})
if 'tags' not in data and user.is_authenticated():
- data['tags'] = ', '.join(t.name for t in obj.tags.filter(category='set', user=user).iterator() if t.name)
+ 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)
def save(self, request):
super(ObjectSetsForm, self).__init__(*args, **kwargs)
def save(self, request):