Force evaluation of Query() through count()
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 12 Dec 2013 17:03:47 +0000 (18:03 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 12 Dec 2013 17:03:47 +0000 (18:03 +0100)
commit461cd7c10d67e04cde4155f32bcd13d174318ba2
tree06771a1385b6857739619fd332ae75fc2b8f5598
parentc518d5421d2a0861cc3ad3791bae6d3a63ca39bc
Force evaluation of Query() through count()

Otherwise "blogs" is a query that evaluates to true, even if the user
has no blogs. This fixes the bug that the blog link is shown on a user's
profile page even if she has no blogs at all.
mediagoblin/media_types/blog/__init__.py
mediagoblin/media_types/blog/templates/mediagoblin/blog/url_to_blogs_dashboard.html