summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@gmail.com>2014-03-31 13:09:12 +0700
committerTim Graham <timograham@gmail.com>2014-03-31 06:35:06 -0400
commitbdec84806365209bf800e9213a1cbb9b5dc2aa29 (patch)
tree5c386982550482fbbff10d9a8f34a45af0301468 /django/db/backends/sqlite3
parent422f5d9a2cf57292195477a845264d0dd4d9fa11 (diff)
[1.7.x] Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.
Backport of a449e7feec from master
Diffstat (limited to 'django/db/backends/sqlite3')
-rw-r--r--django/db/backends/sqlite3/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/schema.py b/django/db/backends/sqlite3/schema.py
index c206a020d5..216ff0958a 100644
--- a/django/db/backends/sqlite3/schema.py
+++ b/django/db/backends/sqlite3/schema.py
@@ -161,7 +161,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
"""
Alters M2Ms to repoint their to= endpoints.
"""
- if old_field.rel.through == new_field.rel.through:
+ if old_field.rel.through._meta.db_table == new_field.rel.through._meta.db_table:
return
# Make a new through table