summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-24 06:31:42 -0400
committerTim Graham <timograham@gmail.com>2014-09-24 06:32:42 -0400
commit0aca91cf7f0ec6547659a9404f139a0c9ba280a1 (patch)
tree19a8f3f9d3f6e205e74f0a94ead1257dd95776d6
parentcf43a1ee909ab5dbca5b6a40247cd093a3e2ac8d (diff)
Fixed flake8 warnings.
-rw-r--r--django/db/backends/postgresql_psycopg2/introspection.py2
-rw-r--r--tests/one_to_one/models.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/postgresql_psycopg2/introspection.py b/django/db/backends/postgresql_psycopg2/introspection.py
index ca1cb961c0..1b98f89b70 100644
--- a/django/db/backends/postgresql_psycopg2/introspection.py
+++ b/django/db/backends/postgresql_psycopg2/introspection.py
@@ -39,7 +39,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
WHERE c.relkind IN ('r', 'v')
AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
AND pg_catalog.pg_table_is_visible(c.oid)""")
- return [TableInfo(row[0], {'r':'t', 'v': 'v'}.get(row[1]))
+ return [TableInfo(row[0], {'r': 't', 'v': 'v'}.get(row[1]))
for row in cursor.fetchall()
if row[0] not in self.ignored_tables]
diff --git a/tests/one_to_one/models.py b/tests/one_to_one/models.py
index 3c204e5c92..8a5defe856 100644
--- a/tests/one_to_one/models.py
+++ b/tests/one_to_one/models.py
@@ -113,6 +113,7 @@ class DirectorManager(models.Manager):
def get_queryset(self):
return super(DirectorManager, self).get_queryset().filter(is_temp=False)
+
class Director(models.Model):
is_temp = models.BooleanField(default=False)
school = models.OneToOneField(School)