mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-20 15:02:31 +00:00
Added buttons to detail & edit view
This commit is contained in:
@@ -59,7 +59,7 @@ class FormCreate(generic.CreateView):
|
||||
return HttpResponseRedirect(self.get_success_url())
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse_lazy('update_form', kwargs={
|
||||
return reverse_lazy('form_detail', kwargs={
|
||||
'pk': self.object.pk,
|
||||
})
|
||||
|
||||
@@ -84,7 +84,7 @@ class FormUpdate(generic.UpdateView):
|
||||
fields = ['data']
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse_lazy('update_form', kwargs={
|
||||
return reverse_lazy('form_detail', kwargs={
|
||||
'pk': self.object.pk,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user