I'd store the query parameters in the user's session: https://docs.djangoproject.com/en/3.1/topics/http/sessions/#examples
On March 19, 2021 9:56:54 AM CDT, "sebasti...@gmail.com" <sebastian.ju...@gmail.com> wrote: >Hello, > >i have a addresslistview that also take parameter like pagingsize and >ordering over url. For example >https://localhost:8000/addresslist?pagingsize=25&ordering=Id > >Now when a user get a request like >https://localhost:8000/addresslist?pagingsize=25&ordering=Id then >parameter >?pagingsize=25&ordering=Id is stored in a user settings cache and when >next >time user call https://localhost:8000/addresslist without parameter >then >the settings from cache is set. > >How can i make this without many querys on database... > >-- >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+unsubscr...@googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/django-users/8c917ea9-ff34-403f-8697-ff3fa81316b0n%40googlegroups.com. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A63FC639-513A-43EB-AA6C-E1A6A1AA7F24%40fattuba.com.