From 4e46d9d969d0c5ff5c1af2d87aa446da6cd27bf9 Mon Sep 17 00:00:00 2001 From: xsillen <165008032+xsillen@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:44:36 +0800 Subject: [PATCH] Fix the issue of parameter concatenation when generating ORM with inspectdb (#331) Co-authored-by: floodpillar <165008032+floodpillar@users.noreply.github.com> --- aerich/inspectdb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerich/inspectdb/__init__.py b/aerich/inspectdb/__init__.py index 996b0c1..94c26bf 100644 --- a/aerich/inspectdb/__init__.py +++ b/aerich/inspectdb/__init__.py @@ -36,7 +36,7 @@ class Column(BaseModel): 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: