diff options
| author | Frederick Muriuki Muriithi | 2025-11-03 13:53:39 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-11-03 13:54:22 -0600 |
| commit | 1ae0b5d4b296923dc3b342dd2cda0fc14c692e65 (patch) | |
| tree | ec92a502597838e72bcdd0abf5b98d6f99aadd31 /uploader/phenotypes/views.py | |
| parent | 59cf745ceeefe6d68baf7f856fa00bd8db0a4b89 (diff) | |
| download | gn-uploader-1ae0b5d4b296923dc3b342dd2cda0fc14c692e65.tar.gz | |
Use new "redirection-to-next" utilities.
Diffstat (limited to 'uploader/phenotypes/views.py')
| -rw-r--r-- | uploader/phenotypes/views.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |
