fix #103: exception in user panel
This commit is contained in:
parent
7ee3902a3c
commit
520e481b27
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Reference in a new issue