.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user