This commit is contained in:
Ross
2021-12-04 23:09:19 +00:00
parent 9da5ccd253
commit 93632c8f8a
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -306,6 +306,10 @@ class Series(models.Model):
self.pk, self.get_examination(), self.description, case_id self.pk, self.get_examination(), self.description, case_id
) )
def get_absolute_url(self):
return reverse("series:series_detail", kwargs={"pk": self.pk})
def get_author_objects(self): def get_author_objects(self):
"""Returns a comma seperated text list of authors""" """Returns a comma seperated text list of authors"""
if self.author: if self.author:
+1 -1
View File
@@ -168,7 +168,7 @@ This series is not associated with any cases.
success: function (json) { success: function (json) {
$("#finding-form").empty(); $("#finding-form").empty();
toastr.info('Finding added.'); toastr.info('Finding added.');
location.reload(); location.reload({{series.get_absolute_url}});
}, },
error: function (xhr, errmsg, err) { error: function (xhr, errmsg, err) {
console.log(xhr.status + ": " + xhr console.log(xhr.status + ": " + xhr