From 1ae0b5d4b296923dc3b342dd2cda0fc14c692e65 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 3 Nov 2025 13:53:39 -0600 Subject: Use new "redirection-to-next" utilities. --- uploader/phenotypes/views.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uploader/phenotypes/views.py') diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index d02018d..ac36ec8 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -41,6 +41,7 @@ from uploader.oauth2.client import oauth2_post from uploader.oauth2.tokens import request_token from uploader.authorisation import require_login from uploader.oauth2 import client as oauth2client +from uploader.route_utils import build_next_argument from uploader.route_utils import generic_select_population from uploader.datautils import safe_int, enumerate_sequence from uploader.species.models import all_species, species_by_id @@ -247,6 +248,12 @@ def view_phenotype(# pylint: disable=[unused-argument] has_se=any(bool(item.get("error")) for item in phenotype["data"]), publication=(phenotype_publication_data(conn, phenotype["Id"]) or {}), privileges=privileges, + next=build_next_argument( + uri="species.populations.phenotypes.view_phenotype", + species_id=species["SpeciesId"], + population_id=population["Id"], + dataset_id=dataset["Id"], + xref_id=xref_id), activelink="view-phenotype") def __fail__(error): -- cgit 1.4.1