Various bug fixes. (#314)
This commit is contained in:
@@ -11,6 +11,7 @@ from lemur.schemas import AssociatedUserSchema, AssociatedAuthoritySchema
|
||||
|
||||
|
||||
class RoleInputSchema(LemurInputSchema):
|
||||
id = fields.Integer()
|
||||
name = fields.String(required=True)
|
||||
username = fields.String()
|
||||
password = fields.String()
|
||||
@@ -20,6 +21,7 @@ class RoleInputSchema(LemurInputSchema):
|
||||
|
||||
|
||||
class RoleOutputSchema(LemurOutputSchema):
|
||||
id = fields.Integer()
|
||||
name = fields.String()
|
||||
username = fields.String()
|
||||
password = fields.String()
|
||||
|
@@ -113,4 +113,4 @@ def render(args):
|
||||
terms = filt.split(';')
|
||||
query = database.filter(query, Role, terms)
|
||||
|
||||
database.sort_and_page(query, Role, args)
|
||||
return database.sort_and_page(query, Role, args)
|
||||
|
Reference in New Issue
Block a user