Skip to content

Commit 3a32c3d

Browse files
authored
Update taxa_upload and edit_taxon.html (#5013)
1 parent 5114ebe commit 3a32c3d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bims/scripts/taxa_upload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,9 @@ def process_data(self, row, taxon_group: TaxonGroup, harvest_synonyms: bool = Fa
828828
accepted_taxon = Taxonomy.objects.filter(
829829
canonical_name__iexact=accepted_taxon_val
830830
).first()
831+
if not accepted_taxon:
832+
self.handle_error(row=row, message=f'Accepted taxon not found: {accepted_taxon_val}')
833+
return
831834

832835
authors = _safe_strip(self.get_row_value(row, AUTHORS))
833836

bims/templates/edit_taxon.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ <h2>
185185
</div>
186186
</div>
187187

188+
<div class="form-group row">
189+
<label for="author" class="col-sm-2 col-form-label col-form-label">
190+
Species Group
191+
</label>
192+
<div class="col-sm-10">
193+
<select id="species-group" class="species-group-auto-complete" name="species-group" style="width: 100%">
194+
<option></option>
195+
</select>
196+
</div>
197+
</div>
198+
188199
<div class="form-group row">
189200
<label for="rank" class="col-sm-2 col-form-label col-form-label">
190201
Taxonomic Comments

0 commit comments

Comments
 (0)