0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

A handle of flake8 fixes

This commit is contained in:
Alex Gaynor 2013-11-27 16:42:39 -06:00
parent df6760f12c
commit a5b94d9d4e
2 changed files with 2 additions and 4 deletions

View File

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

@ -112,9 +112,9 @@ class GeometryField(Field):
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