Modify some bug

pull/530/head
ibuler 8 years ago
parent 6aedfb5219
commit 3c6f50b788

@ -11,7 +11,7 @@
<strong class="font-bold"> {{ user.name }}<span style="color: #8095a8"></span></strong>
</span>
<span class="text-muted text-xs block">
{{ user.get_role_display | default:_('User') }}<b class="caret"></b>
{{ user.get_role_display | default:{% trans 'User' %} }}<b class="caret"></b>
</span>
</span>
</a>

@ -116,8 +116,7 @@ class UserDetailView(AdminUserRequiredMixin, DetailView):
context_object_name = "user"
def get_context_data(self, **kwargs):
groups = [
group for group in UserGroup.objects.iterator() if group not in self.object.groups.iterator()]
groups = [group for group in UserGroup.objects.iterator() if group not in self.object.groups.iterator()]
context = {'app': _('Users'), 'action': _('User detail'), 'groups': groups}
kwargs.update(context)
return super(UserDetailView, self).get_context_data(**kwargs)

Loading…
Cancel
Save