Closed D-GopalKrishna closed 6 months ago
@zsinnema we do need this ->
def get_model_perms(self, request):
return {}
to register the AnatomicalEntityMetaAdmin to be referenced by AnatomicalEntityAdmin.autocomplete_fields.
Brought back this here - since when saving AnatomicalEntities empty - it gave error with the a if () else b logic
. Because indeed in that case it is not any of the two.
Additional FYI - I tried to add a constraint to not allow both to be empty. But still didn't work.
Jira ticket - https://metacell.atlassian.net/browse/SCKAN-279
AE -> AnatomicalEntity
Task description:
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.