From 389ba5420c01c3edbc9884aa3abea065e67618a8 Mon Sep 17 00:00:00 2001 From: Grigory Bukovsky <32143244+booqoffsky@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:07:47 +0300 Subject: [PATCH] fix: pass kwargs to BaseField --- ormar/fields/foreign_key.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ormar/fields/foreign_key.py b/ormar/fields/foreign_key.py index cfa2205ba..951d84468 100644 --- a/ormar/fields/foreign_key.py +++ b/ormar/fields/foreign_key.py @@ -296,6 +296,7 @@ def ForeignKey( # type: ignore # noqa CFQ002 related_orders_by=related_orders_by, skip_reverse=skip_reverse, skip_field=skip_field, + **kwargs, ) Field = type("ForeignKey", (ForeignKeyField, BaseField), {})