From 2046919e5db5d1e7136f48641fe0adb701c145e4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 3 Sep 2024 15:31:12 -0500 Subject: 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. --- uploader/species/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uploader/species') 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") -- cgit v1.2.3