Modify filter by 'Name' in Package Definition

Search with name only matches package name and
search with keyword can matches names, tags ..etc

Change-Id: I0b717ca97444f690da9f391587d4d7aee1936046
Depends-On: Ia86befcf0a126f4e532c847df44170a898b38824
Closes-Bug: #1500865
This commit is contained in:
Aaron-DH 2016-01-05 09:28:54 +08:00
parent 52356c91d0
commit 69e7d24a5f
2 changed files with 9 additions and 2 deletions

View File

@ -55,8 +55,9 @@ class ImportPackage(tables.LinkAction):
class PackagesFilterAction(tables.FilterAction):
name = "filter_packages"
filter_type = "server"
filter_choices = (('search', _("Name"), True),
('type', _("Type"), True))
filter_choices = (('search', _("KeyWord"), True),
('type', _("Type"), True),
('name', _("Name"), True))
class DownloadPackage(tables.Action):

View File

@ -0,0 +1,6 @@
---
fixes:
- Filter by 'Name' in package definition only matches package name.
features:
- Added :filter by 'KeyWord' in package definition can matches
all the package parameters like name, tags ..etc.