Skip to content

update species labels#378

Merged
BryonLewis merged 9 commits intomainfrom
species-labels
Feb 25, 2026
Merged

update species labels#378
BryonLewis merged 9 commits intomainfrom
species-labels

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Feb 24, 2026

Issue:

  • The category for INDIVIDUAL labels in the drop down and table should be changed to SINGLE.
  • The category for COUPLET labels in the drop down and table should be changed to MULTIPLE.
  • There are some generic labels that are listed as “individual” that should be moved to the section below. E.g., NYSP, MYSP, and LESP.
  • NoBat should be moved down with NOISE and NOID.

Modifications:

  • Updates the species.json so it has the new updates to for the category types as well as moving those invididual items and NoBat.
  • Added a Migration so that way existing data and recordings are compatible with the new data
  • Updated client side references to individual, couplet and other fields that would conflict with this update.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 636b261
Status: ✅  Deploy successful!
Preview URL: https://1d02b37c.bats-ai.pages.dev
Branch Preview URL: https://species-labels.bats-ai.pages.dev

View logs

Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One note about changing choices back from a dict to a list of tuples. Otherwise looks good to me

Comment on lines 5 to 10
CATEGORY_CHOICES = [
('single', 'Single'),
('multiple', 'Multiple'),
('frequency', 'Frequency'),
('noid', 'NoID'),
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe with Django 5.0 we can actually use a dictionary for choices.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm it was failing migrations when I had a dictionary, I'll double check it.

@BryonLewis BryonLewis merged commit 85125be into main Feb 25, 2026
6 checks passed
@BryonLewis BryonLewis deleted the species-labels branch February 25, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants