Feature/sckan-279 - Admin interface changes for region + layer #255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira ticket - https://metacell.atlassian.net/browse/SCKAN-279
AE -> AnatomicalEntity
Task description:
Allow to add Synonyms from AnatomicalEntityMeta and AnatomicalEntityIntersections.Added a custom form to this. And allow a charfield with comma separated values as synonyms.This then triggers a post_save - django signal that saves Synonyms if it is passed along while saving.Acceptance criteria (from the Jira Ticket):
allow the admins to add a region through the admin interface - ✅ - already available.
allow the admins to add a layer through the admin interface - ✅ - already available.
allow the admins to add/edit a synonym for an anatomical entity (region, layer) - 🟠 - Done in this PR. Changes being - since Synonyms are connected to AnatomicalEntity - We cannot directly have synonyms for Simple AE/Region/Layer. Rather we have a custom form to get synonyms for AEIntersections and Simple Entities (AEMeta) and save them in AnatomicalEntity.
allow the admins to add an intersection region+layer through the admin interface - ✅ - already available.
allow the admins to pick for origins, vias, destinations either a simple anatomical entity or an intersection region+layer. - ✅ - already available - Users can pick the Anantomical Entities in origins, vias, destinations.