fix #103: exception in user panel

This commit is contained in:
slav0nic 2011-05-02 17:46:29 +03:00
parent 7ee3902a3c
commit 520e481b27

View file

@ -495,7 +495,7 @@ def user(request, username):
'form': form,
'TEMPLATE': 'forum/profile/profile_essentials.html'
}
raise Http404
else:
topic_count = Topic.objects.filter(user__id=user.id).count()
if user.forum_profile.post_count < forum_settings.POST_USER_SEARCH and not request.user.is_authenticated():