@require_GET
@login_required
@ensure_csrf_cookie
def manage_user_standing(request):
 if (not request.user.is_staff):
  raise Http404
 all_disabled_accounts = UserStanding.objects.filter(account_status=UserStanding.ACCOUNT_DISABLED)
 all_disabled_users = [standing.user for standing in all_disabled_accounts]
 headers = ['username', 'account_changed_by']
 rows = []
 for user in all_disabled_users:
  row = [user.username, user.standing.changed_by]
  rows.append(row)
 context = {'headers': headers, 'rows': rows}
 return render_to_response('manage_user_standing.html', context)

@ require_GET @ login_required @ ensure_csrf_cookie def manage_user_standing ( request ) : if ( not request . user . is_staff ) : raise Http404 all_disabled_accounts = UserStanding . objects . filter ( account_status = UserStanding . ACCOUNT_DISABLED ) all_disabled_users = [ standing . user for standing in all_disabled_accounts ] headers = [ 'username' , 'account_changed_by' ] rows = [ ] for user in all_disabled_users : row = [ user . username , user . standing . changed_by ] rows . append ( row ) context = { 'headers' : headers , 'rows' : rows } return render_to_response ( 'manage_user_standing.html' , context )
renders the view used to manage user standing .