2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-04 01:35:54 +00:00

Fix success_url for notes form

This commit is contained in:
Oliver Walters
2020-02-01 22:25:35 +11:00
parent f0933f216c
commit 88ec40e454
2 changed files with 7 additions and 2 deletions

View File

@@ -531,6 +531,11 @@ class PartNotes(UpdateView):
fields = ['notes']
def get_success_url(self):
""" Return the success URL for this form """
return reverse('part-notes', kwargs={'pk': self.get_object().id})
def get_context_data(self, **kwargs):
part = self.get_object()