Add department to field lists for category views.

This commit is contained in:
Lance Edgar 2015-01-31 18:18:54 -06:00
parent ccb7b47912
commit 7fbabc8792

View file

@ -54,6 +54,7 @@ class CategoriesGrid(SearchableAlchemyGridView):
include=[ include=[
g.number, g.number,
g.name, g.name,
g.department,
], ],
readonly=True) readonly=True)
if self.request.has_perm('categories.read'): if self.request.has_perm('categories.read'):
@ -79,6 +80,7 @@ class CategoryCrud(CrudView):
include=[ include=[
fs.number, fs.number,
fs.name, fs.name,
fs.department,
]) ])
return fs return fs