-
Notifications
You must be signed in to change notification settings - Fork 82
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-object-actions not compatible with django-import-export #67
Comments
I suspect it's because both of us are attempting to use a custom template. I could have sworn I documented what to do in this situation, but I can't find it. In this case, you'd have to make your own |
Could we make it a bit simpler to customize the templates? Rather than having to copy in 13 lines from your template - use an include or a templatetag so that all people have to do is add: {% include 'object_actions' %} (or {% object_actions %} if you go with an inclusion tag) |
haha, I was going to say you can check out #17 but that's your PR. It's come up in other ways too so I'm leaning back towards supporting an include tag. I could have sworn there was documentation for how to customize the template but I couldn't find it the last time I looked. I'd like this to be simple enough where everything fits in the README but it's looking like that's not happening. |
Quick workaround I used just now that specifically fixes this for Django Import/Export:
This works for Export but it should be clear how to do the same for import EDIT - Damn - the redirect loses the queryset so you can't export filtered result sets. I'll think up an improved way to do this. |
Any progress made on this so far? |
same issue |
Has anyone ever tried to use django object actions together with django import export?
I have a admin class that I would like to use both of these together:
Like this, I can see my django object actions, but none of the Django import export actions in the admin.
When I change to this:
class MyClass(ImportExportMixin, DjangoObjectActions, SimpleHistoryAdmin):
I see my import export buttons but none of my django object actions anymore.
The text was updated successfully, but these errors were encountered: