ref #218: ops, change default profile template (read only)
This commit is contained in:
parent
6eb292573d
commit
30199706e7
2 changed files with 2 additions and 3 deletions
djangobb_forum
|
@ -387,6 +387,7 @@ def user(request, username, section='essentials', action=None, template='djangob
|
|||
'form': form,
|
||||
})
|
||||
else:
|
||||
template = 'djangobb_forum/user.html'
|
||||
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():
|
||||
return HttpResponseRedirect(reverse('user_signin') + '?next=%s' % request.path)
|
||||
|
|
Reference in a new issue