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

Django 1.10.2 working? #65

Open
ScottEAdams opened this issue Oct 17, 2016 · 3 comments
Open

Django 1.10.2 working? #65

ScottEAdams opened this issue Oct 17, 2016 · 3 comments

Comments

@ScottEAdams
Copy link

I have installed master and updated urls but I am not getting the mass edit form only a single form for the first object. Did a quick bit of debugging and everything seems to be reaching mass_change_view correctly. Any ideas?

@elfgzp
Copy link
Contributor

elfgzp commented Dec 22, 2016

from django.conf.urls import include, url
from django.contrib import admin
from massadmin import urls as massadmin_urls
from massadmin import mass_change_selected

admin.site.add_action(mass_change_selected)

urlpatterns = [
url(r'', include(admin.site.urls)),
url(r'', include(massadmin_urls)),
]

@ScottEAdams
Copy link
Author

yep, thats exactly how its set up and with massadmin in installed apps but still only a single form.

@ScottEAdams
Copy link
Author

Been a while to return to this but I needed a mass-edit solution again so. I found that when using django-guardian it will always return 'admin/guardian/model/change_form.html' with self.change_form_template line 187 in massadmin.py. Is the self.change_form_template needed? Seems to defy the point of the mass-edit override.

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

2 participants