Convert brands view to master3
This commit is contained in:
parent
e3de40bdfe
commit
34bc59f96f
|
@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
|
|||
|
||||
from rattail.db import model
|
||||
|
||||
from tailbone.views import MasterView2 as MasterView, AutocompleteView
|
||||
from tailbone.views import MasterView3 as MasterView, AutocompleteView
|
||||
|
||||
|
||||
class BrandsView(MasterView):
|
||||
|
@ -42,6 +42,10 @@ class BrandsView(MasterView):
|
|||
'name',
|
||||
]
|
||||
|
||||
form_fields = [
|
||||
'name',
|
||||
]
|
||||
|
||||
def configure_grid(self, g):
|
||||
super(BrandsView, self).configure_grid(g)
|
||||
g.filters['name'].default_active = True
|
||||
|
@ -49,13 +53,6 @@ class BrandsView(MasterView):
|
|||
g.default_sortkey = 'name'
|
||||
g.set_link('name')
|
||||
|
||||
def configure_fieldset(self, fs):
|
||||
fs.configure(
|
||||
include=[
|
||||
fs.name,
|
||||
])
|
||||
return fs
|
||||
|
||||
|
||||
class BrandsAutocomplete(AutocompleteView):
|
||||
|
||||
|
|
Loading…
Reference in a new issue