Add department to field lists for category views.
This commit is contained in:
parent
ccb7b47912
commit
7fbabc8792
|
@ -54,6 +54,7 @@ class CategoriesGrid(SearchableAlchemyGridView):
|
|||
include=[
|
||||
g.number,
|
||||
g.name,
|
||||
g.department,
|
||||
],
|
||||
readonly=True)
|
||||
if self.request.has_perm('categories.read'):
|
||||
|
@ -79,6 +80,7 @@ class CategoryCrud(CrudView):
|
|||
include=[
|
||||
fs.number,
|
||||
fs.name,
|
||||
fs.department,
|
||||
])
|
||||
return fs
|
||||
|
||||
|
|
Loading…
Reference in a new issue