Skip to content

Commit

Permalink
Fix the issue of parameter concatenation when generating ORM with ins…
Browse files Browse the repository at this point in the history
…pectdb (#331)

Co-authored-by: floodpillar <[email protected]>
  • Loading branch information
xsillen and xsillen authored Dec 3, 2024
1 parent c0fd3ec commit 4e46d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerich/inspectdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def translate(self) -> dict:
length_parts.append(f"max_digits={self.max_digits}")
if self.decimal_places:
length_parts.append(f"decimal_places={self.decimal_places}")
length = ", ".join(length_parts)
length = ", ".join(length_parts)+", "
if self.null:
null = "null=True, "
if self.default is not None:
Expand Down

0 comments on commit 4e46d9d

Please sign in to comment.