diff --git a/tailbone/views/brands.py b/tailbone/views/brands.py index 407d16f7..dac064b2 100644 --- a/tailbone/views/brands.py +++ b/tailbone/views/brands.py @@ -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):