Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Flake8 corrections

  • Loading branch information...
commit fc79c3fb3daf64b911b1ff8fed30f73c56630416 1 parent d181384
@shaib shaib authored
View
7 django/db/models/sql/compiler.py
@@ -956,10 +956,9 @@ def as_sql(self):
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
1  tests/invalid_models_tests/test_relative_fields.py
@@ -3,7 +3,6 @@
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
1  tests/model_fields/models.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.