Skip to content

Commit

Permalink
fix ignore_missing argument (#164)
Browse files Browse the repository at this point in the history
* fix ignore_missing argument

* update requirements
  • Loading branch information
sinisaos committed Jul 22, 2022
1 parent af7043b commit d61b6bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion piccolo_api/crud/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ async def get_new(self, request: Request) -> CustomJSONResponse:
This endpoint is used when creating new rows in a UI. It provides
all of the default values for a new row, but doesn't save it.
"""
row = self.table(ignore_missing=True)
row = self.table(_ignore_missing=True)
row_dict = row.__dict__
row_dict.pop("id", None)

Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Jinja2>=2.11.0
piccolo[postgres]>=0.60.0
piccolo[postgres]>=0.82.0
pydantic>=1.6
python-multipart>=0.0.5
fastapi>=0.58.0
Expand Down

0 comments on commit d61b6bd

Please sign in to comment.