mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-21 06:56:54 +02:00
add success_url to DeviceUpdateView
This commit is contained in:
parent
b5a267fa88
commit
d42281ec08
|
@ -98,6 +98,9 @@ class DeviceUpdateView(LoginRequiredMixin, UpdateView):
|
|||
form_class = DeviceUpdateForm
|
||||
template_name = 'devices/device_update.html'
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse('device', args=(self.object.pk,))
|
||||
|
||||
|
||||
class DeviceDeleteView(LoginRequiredMixin, DeleteView):
|
||||
model = Device
|
||||
|
|
Loading…
Reference in New Issue
Block a user