Skip to content

Commit

Permalink
Fix IntegrityError caused by Request being saved with raw_body=None
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofrancese committed Aug 29, 2014
1 parent 82f032b commit 343b135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions silk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def save(self, *args, **kwargs):
if self.end_time and self.start_time:
interval = self.end_time - self.start_time
self.time_taken = interval.total_seconds() * 1000
if self.raw_body is None:
self.raw_body = ''
super(Request, self).save(*args, **kwargs)


Expand Down

0 comments on commit 343b135

Please sign in to comment.