1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

add accounts view style list. configurable via settings.VIEW_ACCOUNTS_STYLE

This commit is contained in:
Ing. Jan KRCMAR 2018-05-15 14:22:10 +02:00
parent 8d46bd40fd
commit 43a8fb6dc1
3 changed files with 183 additions and 1 deletions

View file

@ -130,7 +130,10 @@ def accounts(request):
user_delete.delete()
return HttpResponseRedirect(request.get_full_path())
return render(request, 'accounts.html', locals())
accounts_template_file = 'accounts.html'
if settings.VIEW_ACCOUNTS_STYLE == "list":
accounts_template_file = 'accounts-list.html'
return render(request, accounts_template_file, locals())
@login_required