Skip to content

Conversation

@dimasciput
Copy link
Member

Adds a new upload type for species checklists or taxonomic resources to the uploader, including the model choice and template option.

For #4856 (comment)

Adds a new upload type for species checklists or taxonomic resources to the uploader, including the model choice and template option.
Creates a new UploadType model to replace hardcoded TYPE_CHOICES in UploadRequest. The UploadType model allows dynamic management of upload types through the admin interface.

Changes:
- Add UploadType model with fields: name, code, description, order
- Update UploadRequest.upload_type from CharField to ForeignKey
- Update UploadForm to use ModelChoiceField with queryset
- Add UploadTypeAdmin for managing upload types
- Make notes field visible for all upload types (not just spatial)
- Update templates and JavaScript to support dynamic upload types
- Create migration to populate initial upload types and migrate existing data
@dimasciput dimasciput merged commit dec4fac into main Jan 9, 2026
1 check passed
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.

1 participant