diff options
author | Frederick Muriuki Muriithi | 2024-09-03 15:31:12 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-03 16:51:27 -0500 |
commit | 2046919e5db5d1e7136f48641fe0adb701c145e4 (patch) | |
tree | 28f85290df7950497734254de0e18ccf702e153e /uploader/species | |
parent | 61688c00e8734adee4d825571a9c43d926dca001 (diff) | |
download | gn-uploader-2046919e5db5d1e7136f48641fe0adb701c145e4.tar.gz |
Put populations under species: improve hierarchy.
Populations cannot exist without the species they are related to. This
commit updates the URI hierarchy to reflect that expectation.
Diffstat (limited to 'uploader/species')
-rw-r--r-- | uploader/species/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/uploader/species/views.py b/uploader/species/views.py index 6f4d51f..77406a1 100644 --- a/uploader/species/views.py +++ b/uploader/species/views.py @@ -6,6 +6,7 @@ from flask import (flash, Blueprint, current_app as app) +from uploader.population import popbp from uploader.ui import make_template_renderer from uploader.authorisation import require_login from uploader.db_utils import database_connection @@ -14,6 +15,7 @@ from .models import all_species, save_species, species_by_id speciesbp = Blueprint("species", __name__) +speciesbp.register_blueprint(popbp, url_prefix="/") render_template = make_template_renderer("species") |