Skip to content
Browse files

A handle of flake8 fixes

  • Loading branch information...
1 parent df6760f commit a5b94d9d4ea7f85f68bbbb7520d0d5475fbb846c @alex alex committed
Showing with 2 additions and 4 deletions.
  1. +0 −2 django/contrib/gis/db/backends/postgis/schema.py
  2. +2 −2 django/contrib/gis/db/models/fields.py
View
2 django/contrib/gis/db/backends/postgis/schema.py
@@ -1,6 +1,4 @@
-from django.conf import settings
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
-from django.utils.functional import cached_property
class PostGISSchemaEditor(DatabaseSchemaEditor):
View
4 django/contrib/gis/db/models/fields.py
@@ -112,9 +112,9 @@ def deconstruct(self):
kwargs['srid'] = self.srid
if self.dim != 2:
kwargs['dim'] = self.dim
- if self.spatial_index != True:
+ if self.spatial_index is not True:
kwargs['spatial_index'] = self.spatial_index
- if self.geography != False:
+ if self.geography is not False:
kwargs['geography'] = self.geography
return name, path, args, kwargs

0 comments on commit a5b94d9

Please sign in to comment.
Something went wrong with that request. Please try again.