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 on staging: Reverse for 'institutionidentifier-detail' not found #1608

Open
dchiller opened this issue Aug 20, 2024 · 5 comments
Open
Labels

Comments

@dchiller
Copy link
Contributor

The staging Django container gives a django.urls.exceptions.NoReverseMatch exception. This seems to be because the BaseModel defines a get_absolute_url function that assumes that all models have a "detail" view. But the InstitutionIdentifier model does not have a detail view.

@ahankinson
Copy link
Member

How did you trigger that? The institution identifier model isn’t meant to be a url endpoint

@dchiller
Copy link
Contributor Author

dchiller commented Aug 20, 2024

To be honest, I can't recreate it. I was looking through the logs on the staging site trying to pinpoint the cause of another issue and saw this. There's nowhere that I can find in the code thus far that would try to call the get_absolute_url method on the InstitutionIdentifier model, so... at the very least, it seems like that method should allow for the possibility that the model in question won't have a detail view.

@ahankinson
Copy link
Member

Do you have a full traceback?

@dchiller
Copy link
Contributor Author

Do you have a full traceback?

Unfortunately, no.

@dchiller
Copy link
Contributor Author

I'm going to put this on hold until we can recreate.

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

2 participants