Show blacklist station on the user page, allow for 2 click blacklisting and banning

This commit is contained in:
2011-03-14 15:26:25 +00:00
parent 6561ef5312
commit 304001d4c7
6 changed files with 131 additions and 10 deletions

View File

@@ -166,6 +166,9 @@ def user_view(request, username=None):
profile = user.get_profile()
is_admin = request.user.is_staff
if is_admin:
if installed('hr'):
from hr.utils import blacklist_values
blacklisted = len(blacklist_values(user))
services = ServiceAccount.objects.select_related('service').filter(user=user).only('service__name', 'service_uid', 'active')
characters = EVEPlayerCharacter.objects.select_related('corporation').filter(eveaccount__user=user).only('id', 'name', 'corporation__name')