-
Notifications
You must be signed in to change notification settings - Fork 173
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
Not working #2
Comments
I believe our mixin, being a partial/mixin (or sub-class) implementation of a
EDIT: In fact, taking a look at the code, this whole situation can be avoided by simply having our mixin inheriting from |
New error: TypeError at /admin/curriculos/curriculo/ in /(...)/advanced_filters/admin.py in changelist_view :-/ |
First of all, thanks for checking @mpena2099! It's rare to see visitors around here :) But it's not to say the package wasn't being used. On the contrary, the application has evolved quite a bit from the initial state it was in when I initially published it to github (while still using the same core functionality). In fact, the interest you've shown has motivated me to merge the changes from our branch into github as well as add some documentation, to the best of my ability. I suggest you follow this thread as I will reference it when I finally push the update, hopefully that won't be too long from now. |
see CHANGELOG/README for details closes issue #2
Thanks @asfaltboy! :D |
Advanced Filter button created but... don't do nothing. First of all, it is necessary to add 'easy_select2' to INSTALLED_APPS. Now I see the errors below on error console from Safari:
|
Is your STATIC_ROOT configured properly? |
Yes @marklr, and I ran the command "collectstatic"... |
Hi @mpena2099, first of all you are right, Second, our use case platform uses django-grappelli, hence the templates provided occasionally reference grp elements, as explained in the readme. This might need some clarification in the docs, but basically anything (templates and static js/css files) can be overridden for different styling and front-end functionality, if desired. Take a peek in the js/html files, and let me know if you still have trouble implementing your own (non grappelli) template/frontend. I believe our current frontend implementation requires jquery, and If you are debugging locally there is no need to run collectstatic, rather make sure you have DEBUG turned on and the staticfiles app is enabled. |
@mpena2099; I decided that we might as well use the jQuery bundled with easy_select2 if we're gonna require them. So this commit should now fix the issues you had when using the changelist on a non-grappelli. Please note that the change form (for editing existing filters), still overrides grappelli's template, and will require another commit to fix. I've listed this in the short TODO list in the readme. So anyone can feel free to chime in and submit pull request on these things whenever they have some time. |
Hi! OK, now it works... with Grappelli! (I was already thinking of using it in my project) But... without Grappelli still some errors (ALL, I think, related to Grappelli):
Good enough to me! Now... I'm late to make other changes in my system but I'll be back soon to try to help in developing the project. Thanks! :D |
Readable Advanced Filters in forms and admin
* filter without creating new object
Hi!
My code is not working:
Error message: "Cannot create a consistent method resolution order (MRO) for bases AdminAdvancedFiltersMixin, ModelAdmin"
Any ideia?
Thanks!
The text was updated successfully, but these errors were encountered: