summaryrefslogtreecommitdiff
path: root/django
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:13:19 -0400
commita449e7feec73c7a14a972721942ce0f649c9d875 (patch)
tree3ee69df58c4f55bdfa41e394327199b3dcd79535 /django
parentcb5dd99bb422dff38d5e804a91fe876f19a884e6 (diff)
Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.
Diffstat (limited to 'django')
-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