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=[
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue