Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/asgi/examples/starlette/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# The `allowed_hosts` argument is required when running under HTTPS. It's
# used for additional CSRF defence.
admin = create_admin([Director, Movie], allowed_hosts=["my_site.com"])
admin = create_admin(tables=[Director, Movie], allowed_hosts=["my_site.com"])


router = Router(
Expand Down
3 changes: 2 additions & 1 deletion piccolo_admin/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,8 @@ def create_admin(
):
"""
:param tables:
Each of the tables will be added to the admin.
Each of the provided tables will be registered with the admin app and
editable/visible in the view. Tables must already exist (see Piccolo ORM).
:param forms:
For each :class:`FormConfig <piccolo_admin.endpoints.FormConfig>`
specified, a form will automatically be rendered in the user interface,
Expand Down