File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,18 @@ def create_task_model(
166166 TaskModel class with the specified table name.
167167
168168 Example:
169- # Create a task model with default table name
170- TaskModel = create_task_model()
169+ .. code-block:: python
171170
172- # Create a task model with custom table name
173- CustomTaskModel = create_task_model('my_tasks' )
171+ # Create a task model with default table name
172+ TaskModel = create_task_model()
174173
175- # Use with a custom base
176- from myapp.database import Base as MyBase
177- TaskModel = create_task_model('tasks', MyBase)
174+ # Create a task model with custom table name
175+ CustomTaskModel = create_task_model('my_tasks')
176+
177+ # Use with a custom base
178+ from myapp.database import Base as MyBase
179+
180+ TaskModel = create_task_model('tasks', MyBase)
178181 """
179182
180183 class TaskModel (TaskMixin , base ): # type: ignore
You can’t perform that action at this time.
0 commit comments