Merge "users: Correct lock_password status visibility (Yes/No) in user details"
This commit is contained in:
commit
dea8441240
@ -72,11 +72,13 @@ class OverviewTab(tabs.Tab):
|
||||
|
||||
def get_context_data(self, request):
|
||||
user = self.tab_group.kwargs['user']
|
||||
options = getattr(user, 'options', {})
|
||||
return {
|
||||
"user": user,
|
||||
"domain_name": self._get_domain_name(user),
|
||||
'extras': self._get_extras(user),
|
||||
'project_name': self._get_project_name(user),
|
||||
'lock_password': options.get('lock_password', False),
|
||||
}
|
||||
|
||||
|
||||
|
@ -208,8 +208,6 @@ class DetailView(tabs.TabView):
|
||||
context["user"] = user
|
||||
context["url"] = self.get_redirect_url()
|
||||
context["actions"] = table.render_row_actions(user)
|
||||
options = getattr(user, "options", {})
|
||||
context["lock_password"] = options.get("lock_password", False)
|
||||
return context
|
||||
|
||||
@memoized.memoized_method
|
||||
|
Loading…
Reference in New Issue
Block a user