tweak default permissions_prefix in Crud view
This commit is contained in:
parent
374e1dd0d6
commit
afc6faa26a
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class Crud(object):
|
|||
if not template_prefix:
|
||||
template_prefix = url_prefix
|
||||
if not permission_prefix:
|
||||
permission_prefix = route_prefix
|
||||
permission_prefix = route_prefix + 's'
|
||||
|
||||
config.add_route('%s.new' % route_prefix, '%s/new' % url_prefix)
|
||||
config.add_view(cls, attr='new', route_name='%s.new' % route_prefix, renderer='%s/crud.mako' % template_prefix,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue