Move serviceport templates to dcim folder

This commit is contained in:
Iva Kaneva 2016-11-26 01:00:45 +02:00
parent 2cd5e49e91
commit 2563ce624c
3 changed files with 2 additions and 2 deletions

View File

@ -1608,7 +1608,7 @@ def ipaddress_assign(request, pk):
def serviceport(request, pk):
service_port = get_object_or_404(ServicePort.objects.select_related('device'), pk=pk)
return render(request, 'ipam/serviceport.html', {
return render(request, 'dcim/serviceport.html', {
'service_port': service_port,
})
@ -1618,7 +1618,7 @@ class ServicePortEditView(PermissionRequiredMixin, ObjectEditView):
model = ServicePort
form_class = forms.ServiceEditForm
fields_initial = ['ip_address', 'port' 'protocol', 'name', 'description']
template_name = 'ipam/serviceport_edit.html'
template_name = 'dcim/serviceport_edit.html'
def post(self, request, *args, **kwargs):
service_port = self.get_object(kwargs)