We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd0c6a commit 7dae161Copy full SHA for 7dae161
piccolo/apps/schema/commands/generate.py
@@ -285,6 +285,9 @@ class Schema(Table, db=engine):
285
):
286
column_type = ForeignKey
287
kwargs["references"] = ForeignKeyPlaceholder
288
+ imports.add(
289
+ "from piccolo.columns.base import OnDelete, OnUpdate"
290
+ )
291
292
imports.add(
293
"from piccolo.column_types import " + column_type.__name__
0 commit comments