Show new 'exposed' field for brands table

This commit is contained in:
Lance Edgar 2018-01-25 16:09:49 -06:00
parent e8dfe92be3
commit b2b3a633d0

View file

@ -40,19 +40,26 @@ class BrandsView(MasterView):
grid_columns = [
'name',
'confirmed',
]
form_fields = [
'name',
'confirmed',
]
def configure_grid(self, g):
super(BrandsView, self).configure_grid(g)
# name
g.filters['name'].default_active = True
g.filters['name'].default_verb = 'contains'
g.set_sort_defaults('name')
g.set_link('name')
# confirmed
g.set_type('confirmed', 'boolean')
class BrandsAutocomplete(AutocompleteView):