Add editing function to species information #47

Closed
opened 2026-03-03 16:59:44 +00:00 by TussockyJoker · 5 comments
Collaborator

Add the ability to edit an individual species through the website

Add the ability to edit an individual species through the website
TussockyJoker added the help wantedLow priority labels 2026-03-03 16:59:44 +00:00
TussockyJoker removed the help wanted label 2026-03-05 21:06:35 +00:00
Author
Collaborator

I'm working on this

I'm working on this
Author
Collaborator

Current issues with species editor

  • Doesn’t tell you that a species already exists when you try to, but does redirect to the editor
  • Returns this error after editing a species, but does write changes to db:
    Could not build url for endpoint 'species_portal.portal_success' with values ['eng_name']. Did you mean 'species_portal.portal_succes' instead?
  • Does not pre-fill extinction category correctly
  • Cannot be accessed from the ‘species_info’ page
  • Need to figure out how to handle photoid, currently will overwrite with empty string so have removed temporarily
  • Was written while tired and in pain so may be very poorly written
  • Remove unnecessary imports from species_editor.py
  • Check if portal_success necessary in species_portal.py
Current issues with species editor - Doesn’t tell you that a species already exists when you try to, but does redirect to the editor - Returns this error after editing a species, but does write changes to db: Could not build url for endpoint 'species_portal.portal_success' with values ['eng_name']. Did you mean 'species_portal.portal_succes' instead? - Does not pre-fill extinction category correctly - Cannot be accessed from the ‘species_info’ page - Need to figure out how to handle photoid, currently will overwrite with empty string so have removed temporarily - Was written while tired and in pain so may be very poorly written - Remove unnecessary imports from species_editor.py - Check if portal_success necessary in species_portal.py
Author
Collaborator

Working but still needs:

  • When you attempt to add an existing species it does redirect to the editing portal but doesn't explain why
Working but still needs: - When you attempt to add an existing species it _does_ redirect to the editing portal but doesn't explain why
Author
Collaborator

Not finished but working 53c13aae50

Not finished but working 53c13aae505737402c6e9d5bd51733f603d6cdf2
Author
Collaborator

All working atm, please reopen if issues come up. 1938d7ba0e

All working atm, please reopen if issues come up. 1938d7ba0efc0972a58da03f00171204c259cffa
Sign in to join this conversation.