mirror of https://github.com/django/django.git
Fixed flake8 warnings.
This commit is contained in:
parent
cf43a1ee90
commit
0aca91cf7f
|
@ -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]
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue