[Update] 修改系统用户推送,拆分assets的部分模块

This commit is contained in:
ibuler
2018-02-09 11:12:40 +08:00
parent f82d939d15
commit c7296c2498
23 changed files with 186 additions and 406 deletions

View File

@@ -70,11 +70,9 @@ class SystemUserDetailView(AdminUserRequiredMixin, DetailView):
model = SystemUser
def get_context_data(self, **kwargs):
cluster_remain = Cluster.objects.exclude(systemuser=self.object)
context = {
'app': _('Assets'),
'action': _('System user detail'),
'cluster_remain': cluster_remain,
}
kwargs.update(context)
return super().get_context_data(**kwargs)