mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #33982 -- Fixed migrations crash when adding model with ExclusionConstraint.
Regression in 0e656c02fe.
This commit is contained in:
committed by
Mariusz Felisiak
parent
3a084831e2
commit
19e838daa8
@@ -269,7 +269,9 @@ class BaseDatabaseSchemaEditor:
|
||||
sql = self.sql_create_table % {
|
||||
"table": self.quote_name(model._meta.db_table),
|
||||
"definition": ", ".join(
|
||||
constraint for constraint in (*column_sqls, *constraints) if constraint
|
||||
str(constraint)
|
||||
for constraint in (*column_sqls, *constraints)
|
||||
if constraint
|
||||
),
|
||||
}
|
||||
if model._meta.db_tablespace:
|
||||
|
||||
Reference in New Issue
Block a user