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

admin refresh_hrefs and clean_cache views redirect to fixed adminsite #30

Merged
merged 3 commits into from
Oct 1, 2015

Conversation

vkurup
Copy link
Contributor

@vkurup vkurup commented Aug 24, 2014

Using a different AdminSite, which doesn't use the URL namespace admin, means these views don't redirect to the correct place. Instead of using admin, they'd need to pull the name out of self.admin_site.

@mlavin
Copy link
Contributor

mlavin commented Apr 22, 2013

Thank you for the report. Added to the 1.0 milestone.

When calling reverse on admin URLs, set current_app to
self.admin_site.name so that the instance namespace gets set appropriately.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.11%) when pulling d2d6ed5 on 30-hardcoded-admin-namespace into 56a272c on develop.

@vkurup vkurup self-assigned this Sep 30, 2015
Fixed Conflicts:
	treenav/admin.py
	treenav/tests/test_views.py
@vkurup
Copy link
Contributor

vkurup commented Sep 30, 2015

Updated, and ready for review.

@benred42
Copy link
Contributor

benred42 commented Oct 1, 2015

Looks good to me. Maybe make the same info -> self.info change in test_views.py:384, then :shipit:

vkurup added a commit that referenced this pull request Oct 1, 2015
admin refresh_hrefs and clean_cache views redirect to fixed adminsite
@vkurup vkurup merged commit 55385cf into develop Oct 1, 2015
@vkurup vkurup deleted the 30-hardcoded-admin-namespace branch October 1, 2015 18:00
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

Successfully merging this pull request may close these issues.

None yet

4 participants