Yes. It does. ModelAdmin classes can define list filters that appear in the
right sidebar of the change list page of the admin.
For more reference:
https://docs.djangoproject.com/en/4.1/ref/contrib/admin/filters/

For this topic related join our WhatsApp group: https://bit.ly/3oJtfcf

Regards,
Satyajit

On Thu, Jan 5, 2023 at 9:09 AM Mike Dewhirst <mi...@dewhirst.com.au> wrote:

> On 5/01/2023 5:43 am, Mario St-Gelais wrote:
>
> Hello group, first post here.
> Quick question.  Can capabilities of ModelAdmin such as list_filter or
> search_fields be used outside of the admin interface?
>
>
> Have you looked at htmx?
>
> https://www.simplecto.com/htmx-and-the-list_editable-in-django-admin/
>
> htmx is very sweet. Essentially, you can replace a named <div
> id="whatever"></div> on an existing page by calling whatever view you care
> to write. Your view might have to borrow from the Django code if you really
> like what it does.
>
> Digressing slightly, I discovered that you can make a link in html using
> the <a> entity and just replace href="/search" with
> hx_trigger="/hx_search", for example, so that the existing css works and it
> looks like an ordinary link.
>
> Cheers
>
> mike
>
>
> I want a view that would allow non logged users to search a site through
> checkboxes and some search fields possibly and obviously, the way this is
> implemented in the admin view is rather good.
>
> Alternatively, what approach can be used in django?
>
> Thanks
> Mario
> --
> 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/CAFmF6_vLzivA3Y-sskqmcZzsuLc27opP6xW3m3wvmV7nepu%3D-A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFmF6_vLzivA3Y-sskqmcZzsuLc27opP6xW3m3wvmV7nepu%3D-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
> --
> 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/6b16042c-dd2b-9757-2edc-1bbae0e7d911%40dewhirst.com.au
> <https://groups.google.com/d/msgid/django-users/6b16042c-dd2b-9757-2edc-1bbae0e7d911%40dewhirst.com.au?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CANd-%2BoD5Nrj1OxsSHvy8nVru5u1Hw1yWzJ19k7tAoEZOoovQBg%40mail.gmail.com.

Reply via email to