aboutsummaryrefslogtreecommitdiff
path: root/uploader/species
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-03 15:31:12 -0500
committerFrederick Muriuki Muriithi2024-09-03 16:51:27 -0500
commit2046919e5db5d1e7136f48641fe0adb701c145e4 (patch)
tree28f85290df7950497734254de0e18ccf702e153e /uploader/species
parent61688c00e8734adee4d825571a9c43d926dca001 (diff)
downloadgn-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.py2
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")