Skip to content

Commit 21438fd

Browse files
committed
fixing a bug in the fluent interface, when accessing the id column
If accessing `Concert.band_1.manager.id`, an attribute error would be raised, because `id` doesn't exist.
1 parent 8284166 commit 21438fd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

piccolo/columns/column_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,6 @@ def __getattribute__(self, name: str):
11991199
i for i in new_column._meta.call_chain
12001200
]
12011201
_column._meta.call_chain.append(new_column)
1202-
if _column._meta.name == "id":
1203-
continue
12041202
setattr(new_column, _column._meta.name, _column)
12051203
foreign_key_meta.proxy_columns.append(_column)
12061204

0 commit comments

Comments
 (0)