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

"View on Site" not working in Django Admin #1411

Closed
ssciolla opened this issue Aug 27, 2022 · 2 comments · Fixed by #1434
Closed

"View on Site" not working in Django Admin #1411

ssciolla opened this issue Aug 27, 2022 · 2 comments · Fixed by #1434
Assignees
Labels

Comments

@ssciolla
Copy link
Contributor

Thank you for contributing to this project!

  • Make sure to search the issues for duplicates first!

Expected behavior (A description of what you expected to happen) :

Clicking "View on Site" in the top right of the course editing admin page should take you to the course's landing page.

Describe the bug (Tell us what happens instead of the expected behavior) :

The URL of this button is now something like this /admin/r/5/17700000000XXXXXX/, and doesn't seem to use get_absolute_url as the docs would suggest. https://docs.djangoproject.com/en/3.2/ref/models/instances/#get-absolute-url

Additional context (Add any other context about the problem here) :

Related issue: #936

Seems like we may need to add something like this, though I'm not sure why:
https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.view_on_site

Possibly related:
https://code.djangoproject.com/ticket/27757

@ssciolla ssciolla self-assigned this Aug 27, 2022
@jennlove-um jennlove-um added this to To do in MyLA-2023.01.01 via automation Oct 14, 2022
@jennlove-um jennlove-um added this to To do in MyLA-2022.02.01 via automation Nov 10, 2022
@jennlove-um jennlove-um removed this from To do in MyLA-2023.01.01 Nov 10, 2022
@jennlove-um jennlove-um moved this from To do to In progress in MyLA-2022.02.01 Nov 10, 2022
MyLA-2022.02.01 automation moved this from In progress to Review/QA Nov 15, 2022
@jennlove-um
Copy link
Contributor

The View on Site button is working as expected in MyLA beta.

@jennlove-um jennlove-um moved this from Review/QA to Done in MyLA-2022.02.01 Dec 14, 2022
@jennlove-um
Copy link
Contributor

The View on Site button is working as expected in MyLA test.

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

Successfully merging a pull request may close this issue.

2 participants