Wednesday, February 24, 2021

Sorting by distance and date from classifieds page.

Hi all,

1. After posting an Ad it will display in the classifieds page. After user logged in user zip code and based on classifieds ad zip code distance we are showing in classifieds page.
2. Based on distance and added date of Ad we need to show a listing in the classifieds page.
3. within 40 miles first we need to show listings of Ads and then in that again within 40 miles based on the added date we need to show in classifieds page.
4. And next 80 miles and then in that added by date in the classifieds page.

Example:-
title                      logged       Adzip     distance      added_date
 
Testing post Ad   80023       80027      10.5 mi         2021-01-2213:37:44.32801+05:30


Can anyone help me to achieve this? Thank you 

Thanks
~Salima

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSz6bn%3D6wZ%2BAoLQOkM6Dxr7Bx4%2BvVKY79mq4JUvydcqOq8YDg%40mail.gmail.com.

No comments:

Post a Comment