-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add display_fields and other attributes to crud_for_model and crud_for_app #114
Comments
You mean concentrate all the model crud attributes ( Could be nice for all the attributes but Also would be helpful if you share the function you created to get it packaged in just a method (thanks in advance). Thanks for the idea @kptac. |
Ya that is exactly what I meant. All I did was copy crud_for_model method and added display_fields, search_fields, and list_filter and used my custom method in urls.py, as those were the main fields that I needed for now. I've been using my custom crud_for_model with CRUDMixin for quick results and its working great. Something like this:
|
Cool! It seems really easy to make a PR with the changes, so we can add them in the next release. I have a challenge for you: would you like to make the PR yourself?, I will help with the review and with the documentation update, you can't say no! 😉 |
sure :) |
@oscarmlage - Added PR, please review. |
Why not add the rest of the attributes of CRUDView?
I had to create my own function for that, but it will be nice to have it all get packaged in one method. No?
Then crud_for_model and crud_for_app is all we need to get started. Also, CRUDMixin is great too :)
The text was updated successfully, but these errors were encountered: