Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3479 from mozilla/revert-revisions-ban-1203403
Browse files Browse the repository at this point in the history
Bug 1203403 - Revert commit aad6fce
  • Loading branch information
jwhitlock committed Sep 10, 2015
2 parents d38c957 + 976351f commit 4f6ae1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -49,9 +49,10 @@
<br/><a class="dashboard-ban-ip-link" href="{{ ban_ip_url }}" target="_blank">{{ _('Ban IP from Editing') }}</a>
</span>
{% endif %}
{% if request.user.is_superuser and revision.creator.active_ban %}
{% set active_ban = revision.creator.active_ban %}
{% if request.user.is_superuser and active_ban %}
<div class="banned">
banned {{ datetimeformat(revision.creator.active_ban.date, format='date') }}
banned {{ datetimeformat(active_ban.date, format='date') }}
by {{ active_ban.by }}
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion kuma/dashboards/views.py
Expand Up @@ -21,7 +21,7 @@ def revisions(request):
filter_form = RevisionDashboardForm(request.GET)
page = request.GET.get('page', 1)

revisions = (Revision.objects.prefetch_related('creator',
revisions = (Revision.objects.prefetch_related('creator__bans',
'document')
.order_by('-created')
.defer('content'))
Expand Down

0 comments on commit 4f6ae1c

Please sign in to comment.