MetaCell / sckan-composer

0 stars 0 forks source link

Feature/sckan-279 - Admin interface changes for region + layer #255

Closed D-GopalKrishna closed 6 months ago

D-GopalKrishna commented 6 months ago

Jira ticket - https://metacell.atlassian.net/browse/SCKAN-279

AE -> AnatomicalEntity

Task description:




Acceptance criteria (from the Jira Ticket):

D-GopalKrishna commented 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.

D-GopalKrishna commented 6 months ago

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.

image