mirror of https://github.com/jumpserver/jumpserver
add context
parent
35abf16f7d
commit
9353022627
|
@ -74,3 +74,8 @@ class UserDetailView(DeleteView):
|
||||||
model = User
|
model = User
|
||||||
template_name = 'users/user_detail.html'
|
template_name = 'users/user_detail.html'
|
||||||
context_object_name = "user"
|
context_object_name = "user"
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
context = super(UserDetailView, self).get_context_data(**kwargs)
|
||||||
|
context.update({'path1': '用户管理', 'path2': '用户详情', 'title': '用户详情'})
|
||||||
|
return context
|
||||||
|
|
Loading…
Reference in New Issue