mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fix return URL when editing a service
This commit is contained in:
parent
e77f1bdd85
commit
b85990daa6
@ -843,9 +843,6 @@ class ServiceEditView(ObjectEditView):
|
||||
)
|
||||
return obj
|
||||
|
||||
def get_return_url(self, request, service):
|
||||
return service.parent.get_absolute_url()
|
||||
|
||||
|
||||
class ServiceBulkImportView(BulkImportView):
|
||||
queryset = Service.objects.all()
|
||||
|
@ -15,7 +15,7 @@
|
||||
<i class="fa fa-history"></i>
|
||||
</a>
|
||||
{% if perms.ipam.change_service %}
|
||||
<a href="{% url 'ipam:service_edit' pk=service.pk %}" class="btn btn-info btn-xs" title="Edit service">
|
||||
<a href="{% url 'ipam:service_edit' pk=service.pk %}?return_url={{ service.parent.get_absolute_url }}" class="btn btn-info btn-xs" title="Edit service">
|
||||
<i class="glyphicon glyphicon-pencil"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user