mirror of
https://github.com/RobbieHan/sandboxMP.git
synced 2026-04-14 02:20:17 +08:00
device models
This commit is contained in:
@@ -15,8 +15,8 @@ class CodeView(LoginRequiredMixin, BreadcrumbMixin, TemplateView):
|
||||
template_name = 'cmdb/code.html'
|
||||
|
||||
def get_context_data(self):
|
||||
context = dict(code_parent=Code.objects.filter(parent=None))
|
||||
return context
|
||||
self.kwargs['code_parent'] = Code.objects.filter(parent=None)
|
||||
return super().get_context_data(**self.kwargs)
|
||||
|
||||
|
||||
class CodeCreateView(SandboxCreateView):
|
||||
|
||||
Reference in New Issue
Block a user