fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deleted hover borders
[wolnelektury.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
b04cf43
..
4476fd2
100644
(file)
--- a/
apps/catalogue/views.py
+++ b/
apps/catalogue/views.py
@@
-79,11
+79,11
@@
def differentiate_tags(request, tags, ambiguous_slugs):
options = []
for tag in models.Tag.objects.exclude(category='book').filter(slug=ambiguous_slugs[0]):
options.append({
options = []
for tag in models.Tag.objects.exclude(category='book').filter(slug=ambiguous_slugs[0]):
options.append({
- 'url_args': '/'.join((beginning, tag.url_chunk, unparsed)).
r
strip('/'),
- 'tags':
tags +
[tag]
+ 'url_args': '/'.join((beginning, tag.url_chunk, unparsed)).strip('/'),
+ 'tags': [tag]
})
return render_to_response('catalogue/differentiate_tags.html',
})
return render_to_response('catalogue/differentiate_tags.html',
- {'tags': tags, 'options': options, 'unparsed':
unparsed
},
+ {'tags': tags, 'options': options, 'unparsed':
ambiguous_slugs[1:]
},
context_instance=RequestContext(request))
context_instance=RequestContext(request))
@@
-375,7
+375,6
@@
def tags_starting_with(request):
return HttpResponse('\n'.join(tag.name for tag in _tags_starting_with(prefix, request.user)))
return HttpResponse('\n'.join(tag.name for tag in _tags_starting_with(prefix, request.user)))
-
# ====================
# = Shelf management =
# ====================
# ====================
# = Shelf management =
# ====================