Skip to content

Commit

Permalink
Remove walrus operator for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dauinsight committed Mar 11, 2024
1 parent c6018c9 commit 5599270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mssql/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,8 @@ def add_field(self, model, field):
# It might not actually have a column behind it
if definition is None:
return
if col_type_suffix := field.db_type_suffix(connection=self.connection):
col_type_suffix = field.db_type_suffix(connection=self.connection)
if col_type_suffix:
definition += f" {col_type_suffix}"
# Remove column type from definition if field is generated
if (django_version >= (5,0) and field.generated):
Expand Down

0 comments on commit 5599270

Please sign in to comment.