mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
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:
parent
ef348b5298
commit
86b1c31689
3 changed files with 8 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue