Fixed #19954 -- Fixed MySQL _last_executed decoding

Queries can contain binary data undecodable with utf-8. In this
case, using the 'replace' errors mode when decoding seems like
an acceptable representation of the query.
Thanks Marcel Ryser for the report.
This commit is contained in:
Claude Paroz 2013-03-28 20:00:59 +01:00
parent ef348b5298
commit 86b1c31689
3 changed files with 8 additions and 7 deletions

View file

@ -62,6 +62,7 @@ class Post(models.Model):
class Reporter(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
raw_data = models.BinaryField()
def __str__(self):
return "%s %s" % (self.first_name, self.last_name)