.
This commit is contained in:
@@ -306,6 +306,10 @@ class Series(models.Model):
|
||||
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):
|
||||
"""Returns a comma seperated text list of authors"""
|
||||
if self.author:
|
||||
|
||||
@@ -168,7 +168,7 @@ This series is not associated with any cases.
|
||||
success: function (json) {
|
||||
$("#finding-form").empty();
|
||||
toastr.info('Finding added.');
|
||||
location.reload();
|
||||
location.reload({{series.get_absolute_url}});
|
||||
},
|
||||
error: function (xhr, errmsg, err) {
|
||||
console.log(xhr.status + ": " + xhr
|
||||
|
||||
Reference in New Issue
Block a user