Moved the _generate_token methods to the tokens_dao.

This commit is contained in:
Rebecca Law
2016-01-14 11:30:45 +00:00
parent 5e61515eb6
commit 436f45b70d
6 changed files with 108 additions and 77 deletions

View File

@@ -31,6 +31,8 @@ class TemplateSchema(ma.ModelSchema):
class TokenSchema(ma.ModelSchema):
class Meta:
model = models.Token
exclude = ["service"]
user_schema = UserSchema()
users_schema = UserSchema(many=True)