This commit is contained in:
Andros Fenollosa 2018-02-06 23:01:20 +01:00
parent 9675dd0bf2
commit e5725582a8

2
app.py
View File

@ -47,7 +47,7 @@ users_schema = UserSchema(many=True)
class NoticeSchema(ma.Schema):
class Meta:
# Fields to expose
fields = ('title', 'link', 'user_id', '_links')
fields = ('title', 'url', 'user_id', '_links')
_links = ma.Hyperlinks({
'comments': ma.URLFor('comments', id='<id>'),