Update some more view config syntax
some common ones used by a particular app..
This commit is contained in:
parent
738d5d94e0
commit
a28a801a62
5 changed files with 45 additions and 6 deletions
|
@ -329,5 +329,12 @@ class EmployeeView(MasterView):
|
|||
"View *all* (not just current) {}".format(model_title_plural))
|
||||
|
||||
|
||||
def includeme(config):
|
||||
def defaults(config, **kwargs):
|
||||
base = globals()
|
||||
|
||||
EmployeeView = kwargs.get('EmployeeView', base['EmployeeView'])
|
||||
EmployeeView.defaults(config)
|
||||
|
||||
|
||||
def includeme(config):
|
||||
defaults(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue