Skip to content

Commit

Permalink
updating piccolo syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Oct 30, 2019
1 parent 8cc88a3 commit ae2103a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piccolo_api/crud/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def pydantic_model(self):
columns[column._meta.name] = pydantic.Schema(
default=0,
foreign_key=True,
to=column.references._meta.tablename
to=column._foreign_key_meta.references._meta.tablename
)
else:
columns[column._meta.name] = (
Expand Down

0 comments on commit ae2103a

Please sign in to comment.