Flake8 corrections

This commit is contained in:
Shai Berger 2014-03-12 20:34:05 +02:00
parent d181384e5f
commit fc79c3fb3d
3 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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()