File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
dataclass_sqlalchemy_mixins/base Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def get_foreign_key_filtered_column(
47
47
48
48
if related_model :
49
49
# Updating original model to continue search
50
- model = related_model .argument
50
+ model = related_model .entity . class_
51
51
models .append (model )
52
52
continue
53
53
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " dataclass-sqlalchemy-mixins"
3
- version = " 0.3.0 "
3
+ version = " 0.3.1 "
4
4
description = " Allows to convert dataclasses to sqlalchemy filters and orderings."
5
5
authors = [" ViAchKoN" ]
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class Group(BaseModel):
66
66
Owner .id ,
67
67
),
68
68
)
69
- owner = relationship (Owner )
69
+ owner = relationship (" Owner" )
70
70
71
71
items = relationship ("Item" , back_populates = "group" , lazy = "dynamic" )
72
72
You can’t perform that action at this time.
0 commit comments