Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Feb 7, 2015
1 parent 0514617 commit 1ffeb6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/i18n.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ so you want to add translations for the menus "List Groups" and "List Contacts".
from flask.ext.babelpkg import lazy_gettext as _

class GroupModelView(ModelView):
datamodel = SQLAModel(ContactGroup)
datamodel = SQLAInterface(ContactGroup)
related_views = [ContactModelView]

label_columns = {'name':_('Name')}

genapp.add_view(GroupModelView(), "List Groups",icon = "th-large", label=_('List Groups'),
Expand Down

0 comments on commit 1ffeb6f

Please sign in to comment.