Show new 'exposed' field for brands table
This commit is contained in:
parent
e8dfe92be3
commit
b2b3a633d0
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue