diff --git a/docs/index.rst b/docs/index.rst index 4a9b2abff..7c0b38a96 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -62,6 +62,7 @@ Model definitions: Operations on models, queries and complex aggregations: .. code-block:: python3 + # Creating a record await Tournament.create(name='Another Tournament') diff --git a/docs/query.rst b/docs/query.rst index 7cbce6621..e76a606c2 100644 --- a/docs/query.rst +++ b/docs/query.rst @@ -277,6 +277,7 @@ PostgreSQL and SQLite also support ``iposix_regex``, which makes case insensive .. code-block:: python3 + class DemoModel: demo_text = fields.TextField()