add context

pull/530/head
ibuler 2016-08-17 00:23:52 +08:00
parent 35abf16f7d
commit 9353022627
1 changed files with 5 additions and 0 deletions

View File

@ -74,3 +74,8 @@ class UserDetailView(DeleteView):
model = User
template_name = 'users/user_detail.html'
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