-
Notifications
You must be signed in to change notification settings - Fork 128
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 autocomplete_fields in Admin and other updates #100
Conversation
Add autocomplete_fields to have select2 input for foreign key fields. This optimizes admin and reduces queries and speed when related objects are a lot to fetch.
There may be chances when the admin wants to hide few pricing levels from pricing model visible to the user but does not want to delete as there may be existing users under this pricing.
add pricing admin with searchable fields to be used in autocomplete_fields
This will fix visibility in admin panel filter list
Codecov Report
@@ Coverage Diff @@
## master #100 +/- ##
==========================================
+ Coverage 76.41% 76.64% +0.22%
==========================================
Files 36 37 +1
Lines 1819 1841 +22
==========================================
+ Hits 1390 1411 +21
- Misses 429 430 +1
Continue to review full report at Codecov.
|
Some users may have recurring based order and the user will be able to disable recurring. This flag will add a check whether the order is recurring based or not.
Add migrations file
Get display id using string status code. ``` Order.STATUS.get_display_id('NEW') ```
Thanks for the patch, However some stuff are missing:
|
Would like to know what @PetrDlouhy thinks of this changes as well. |
Hi, I looked at this, but didn't test.
|
The update include
autocomplete_fields
to foreign key fields to enable select2 ajax searchable foreign key field. This will reduce queries and optimize admin page when related objects are large in the count.PricingAdmin
. Required to addsearch_fields
to add inautocomplete_fields
.name
,available
,visible
fields of Plan model to improve visibility in the filter list.visible
field to thePricing
model. Sometimes admin wants to hide a few pricing but can not delete it as there might be existing users under this pricing.