mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Change CableCreateView to use ObjectEditView
This commit is contained in:
@ -346,7 +346,7 @@ class ObjectEditView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View):
|
||||
form = self.model_form(
|
||||
data=request.POST,
|
||||
files=request.FILES,
|
||||
instance=self.alter_obj(self.get_object(kwargs), request, args, kwargs)
|
||||
instance=obj
|
||||
)
|
||||
|
||||
if form.is_valid():
|
||||
|
Reference in New Issue
Block a user