fix: remove 'contains' verb for sex filter
This commit is contained in:
parent
2a375b0a6f
commit
f374ae426c
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ class AnimalTypeView(AssetTypeMasterView):
|
|||
|
||||
# sex
|
||||
g.set_enum("sex", enum.ANIMAL_SEX)
|
||||
g.filters["sex"].verbs = ["equal", "not_equal"]
|
||||
|
||||
# archived
|
||||
g.set_renderer("archived", "boolean")
|
||||
|
|
@ -204,6 +205,7 @@ class AnimalAssetView(AssetMasterView):
|
|||
|
||||
# sex
|
||||
g.set_enum("sex", enum.ANIMAL_SEX)
|
||||
g.filters["sex"].verbs = ["equal", "not_equal"]
|
||||
|
||||
def render_animal_type_for_grid(self, animal, field, value):
|
||||
url = self.request.route_url("animal_types.view", uuid=animal.animal_type_uuid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue