Re: Sorting price and discount price (urgent)

2021-07-01 Thread SKYLINE TV
the word urgen is bad, do lot of google boss On Thursday, July 1, 2021 at 1:28:13 PM UTC+1 arit...@gmail.com wrote: > Hi, > > I will avoid using 'urgent'. The problem is as described above, I want to > sort my products in ascending or descending price order which will include > the discount

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
Hi, I will avoid using 'urgent'. The problem is as described above, I want to sort my products in ascending or descending price order which will include the discount price too if it exists. Right now, if there are two products, A and B; A being ₹900 and B being ₹1200 too but after discount, ₹

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Shailesh Yadav
yes, I agree with Kasper please don't use urgent OR very urgent, and please describe your questions in detail. from where you getting this *discount_price* and why you using the *price* key for two different values. (can you check by printing *discount_price*) fields={ 'price':

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
I tried to describe the problem but till my capability and it is urgent, not just for increasing the possibility of getting help. Thank you for your advice and help. On Thu, 1 Jul, 2021, 1:30 pm Kasper Laudrup, wrote: > On 7/1/21 8:03 AM, Aritra Ray wrote: > > I am facing a problem in including

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Kasper Laudrup
On 7/1/21 8:03 AM, Aritra Ray wrote: I am facing a problem in including the discount_price into consideration when sorting price through the products. Kindly help me to do so. The below attached files are filters.py, views.py and  models.py. Instead of writing "urgent" in hope it will

Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
I am facing a problem in including the discount_price into consideration when sorting price through the products. Kindly help me to do so. The below attached files are filters.py, views.py and models.py. Regards, Aritra class ProductFilter(django_filters.FilterSet): sort = OrderingFilter(