Permalink
Browse files

Add profile list template settings which allows users to use a custom…

… profile list template.
  • Loading branch information...
cirosantilli authored and wunki committed Oct 29, 2012
1 parent b1b3ec9 commit 6a0bc1575a1816a130644efde411fbed131720be
Showing with 11 additions and 1 deletion.
  1. +7 −0 docs/settings.rst
  2. +3 −0 userena/settings.py
  3. +1 −1 userena/views.py
@@ -168,6 +168,13 @@ Default: ``userena/profile_detail.html`` (string)
Template to use for rendering user profiles. This allows you to specify a
template in your own project which extends ``userena/profile_detail.html``.
USERENA_PROFILE_LIST_TEMPLATE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default: ``userena/profile_list.html`` (string)
Template to use for rendering users list. This allows you to specify a
template in your own project which extends ``userena/profile_list.html``.
USERENA_DISABLE_PROFILE_LIST
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default: ``False`` (boolean)
@@ -94,4 +94,7 @@
USERENA_PROFILE_DETAIL_TEMPLATE = getattr(
settings, 'USERENA_PROFILE_DETAIL_TEMPLATE', 'userena/profile_detail.html')
USERENA_PROFILE_LIST_TEMPLATE = getattr(
settings, 'USERENA_PROFILE_LIST_TEMPLATE', 'userena/profile_list.html')
USERENA_HIDE_EMAIL = getattr(settings, 'USERENA_HIDE_EMAIL', False)
@@ -44,7 +44,7 @@ class ProfileListView(ListView):
context_object_name='profile_list'
page=1
paginate_by=50
template_name='userena/profile_list.html'
template_name=userena_settings.USERENA_PROFILE_LIST_TEMPLATE
extra_context=None
def get_context_data(self, **kwargs):

0 comments on commit 6a0bc15

Please sign in to comment.