Tuesday, October 29, 2019

Re: Add filter to admin add page?

It is not clear if those fields can be used in the admin list interface drop-down filters - is there a link to documentation for that?

On Wednesday, 23 October 2019 16:13:13 UTC+2, Nelson Varela wrote:
Or even better... whu not use django's own auto complete feature in the admin: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields

Op dinsdag 22 oktober 2019 00:07:40 UTC+2 schreef Wil Moskal:
I have a model registered to the admin page, AuthUserFilePermissions, which consists of 2 foreign keys, a key to the defined groups, and a key to the filepatterns. Within the add AuthUserFilePermissions, there is a select for each. For the group this is fine, as there is only like 7-8. for the file patterns this is not good, as there are over 1000 file patterns. What I am trying to do is implement a search filter for the file pattern entry, similar to how in the add group page there is a filter for the permissions, around the select. Any Idea how I could complete this?

On a side note, the fields that I am entering within my modelAdmins are not appearing on the add page, so it would also be good to know why not. 

--
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/f1ba3570-dfdc-4b2e-b503-96112ba7aee3%40googlegroups.com.

No comments:

Post a Comment