Avoid problems with some malformed requests

remotes/origin/github-import
Jesús Espino 2017-02-14 21:00:21 +01:00
parent e93aff73e7
commit d306900c31
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ class HistoryResourceMixin(object):
"""
user = self.request.user
comment = ""
if isinstance(self.request.DATA, dict):
comment = self.request.DATA.get("comment", "")
if obj is None: