diff --git a/docs/source/asgi/examples/starlette/app.py b/docs/source/asgi/examples/starlette/app.py index 3c5f8ce4..9dceca52 100644 --- a/docs/source/asgi/examples/starlette/app.py +++ b/docs/source/asgi/examples/starlette/app.py @@ -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( diff --git a/piccolo_admin/endpoints.py b/piccolo_admin/endpoints.py index 8bdbdec3..4de923bb 100644 --- a/piccolo_admin/endpoints.py +++ b/piccolo_admin/endpoints.py @@ -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 ` specified, a form will automatically be rendered in the user interface,