Flake8 corrections
This commit is contained in:
parent
d181384e5f
commit
fc79c3fb3d
|
@ -956,10 +956,9 @@ class SQLUpdateCompiler(SQLCompiler):
|
|||
val = val.prepare_database_save(field)
|
||||
else:
|
||||
raise TypeError("Database is trying to update a relational field "
|
||||
"of type %s with a value of type %s. Make sure "
|
||||
"you are setting the correct relations" %
|
||||
(field.__class__.__name__,
|
||||
val.__class__.__name__))
|
||||
"of type %s with a value of type %s. Make sure "
|
||||
"you are setting the correct relations" %
|
||||
(field.__class__.__name__, val.__class__.__name__))
|
||||
else:
|
||||
val = field.get_db_prep_save(val, connection=self.connection)
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
|||
|
||||
from django.core.checks import Error
|
||||
from django.db import models
|
||||
from django.db.models.fields import FieldDoesNotExist
|
||||
from django.test.utils import override_settings
|
||||
from django.test.testcases import skipIfDBFeature
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ class Whiz(models.Model):
|
|||
class BigD(models.Model):
|
||||
d = models.DecimalField(max_digits=38, decimal_places=30)
|
||||
|
||||
|
||||
class FloatModel(models.Model):
|
||||
size = models.FloatField()
|
||||
|
||||
|
|
Loading…
Reference in New Issue