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

HTMLWidget brakes log's change_form #161

Open
mordechaiyosef opened this issue Sep 19, 2019 · 1 comment
Open

HTMLWidget brakes log's change_form #161

mordechaiyosef opened this issue Sep 19, 2019 · 1 comment

Comments

@mordechaiyosef
Copy link
Contributor

DoesNotExist at /chroniker/log/73750/change/
Log matching query does not exist.

log seems to exist in change_list and can be accessed through
/chroniker/log/73750/stdout/

maybe this is due to absolute urls. i am running admin site at "/" instead of "/admin/

@mordechaiyosef mordechaiyosef changed the title Log entry change_form not found, but log exists HTMLWidget brakes log's change_form Sep 19, 2019
@mordechaiyosef
Copy link
Contributor Author

mordechaiyosef commented Sep 19, 2019

looking closer at the issue i identified the problem with the htmlwidget class

by replacing
obj = related_model._default_manager.get(**{key: value})
with

try:
    obj = related_model._default_manager.get(**{key: value})
except:
    obj = "404"

i can view the page however it does not fix the underlying issue

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

No branches or pull requests

1 participant