Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deleting a historical item #28

Open
geoffroy-noel-ddh opened this issue Sep 12, 2018 · 0 comments
Open

Error when deleting a historical item #28

geoffroy-noel-ddh opened this issue Sep 12, 2018 · 0 comments
Assignees
Labels

Comments

@geoffroy-noel-ddh
Copy link
Collaborator

DoesNotExist at /admin/digipal/historicalitem/2/delete/
HistoricalItem matching query does not exist.

in models.py

def on_post_delete(self):
    # save the associated HI (to recalculate HI.catalogue_number and
    # HI.display_label)
                if self.historical_item: ...
        self.historical_item.save()

self = <CatalogueNumber: Gneuss 4>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant