mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Avoided using BinaryField unecessarily in tests.
Several database backends struggle with binary data. This change
minimizes the risk of unrelated tests failures when binary fields
trigger errors.
Forward-port of 2e4bcb9b
from stable/1.7.x.
This commit is contained in:
parent
ae3fe6ccbb
commit
237c229b91
2 changed files with 7 additions and 4 deletions
|
@ -64,7 +64,6 @@ 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)
|
||||
|
@ -112,3 +111,7 @@ class ObjectReference(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return str(self.obj_id)
|
||||
|
||||
|
||||
class RawData(models.Model):
|
||||
raw_data = models.BinaryField()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue