Merge pull request #37 from jedie/search-in-tags

Search items in change list by "kind" and "tags", too
pull/38/head
Jens Diemer 2021-01-19 19:06:06 +01:00 zatwierdzone przez GitHub
commit d9ded2fff7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -186,6 +186,7 @@ Files are separated into: "/src/" and "/development/"
== history
* [[https://github.com/jedie/PyInventory/compare/v0.8.3...master|compare v0.8.3...master]] **dev**
** Search items in change list by "kind" and "tags", too
** tbc
* [[https://github.com/jedie/PyInventory/compare/v0.8.2...v0.8.3|v0.8.3 - 29.12.2020]]
** update requirements

Wyświetl plik

@ -246,6 +246,8 @@ history
* `compare v0.8.3...master <https://github.com/jedie/PyInventory/compare/v0.8.3...master>`_ **dev**
* Search items in change list by "kind" and "tags", too
* tbc
* `v0.8.3 - 29.12.2020 <https://github.com/jedie/PyInventory/compare/v0.8.2...v0.8.3>`_
@ -393,4 +395,4 @@ donation
------------
``Note: this file is generated from README.creole 2020-12-29 14:29:22 with "python-creole"``
``Note: this file is generated from README.creole 2021-01-19 19:03:51 with "python-creole"``

Wyświetl plik

@ -92,7 +92,7 @@ class ItemModelAdmin(ImportExportMixin, BaseUserAdmin):
ordering = ('kind', 'producer', 'name')
list_display_links = None
list_filter = ('kind', 'location', 'producer', 'tags')
search_fields = ('name', 'description')
search_fields = ('name', 'description', 'kind__name', 'tags__name')
fieldsets = (
(_('Internals'), {
'classes': ('collapse',),