Replies: 1 comment 1 reply
-
# users/schemas.py
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from tasks.schemas import TaskSchema Maybe this will help? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Thanks for the amazing library.
I have
UserSchema
:...and
TaskSchema
:But it throws:
What I want to do is that I want to fetch:
GET /api/todos
- a list of tasks with related ownersGET /api/todos/{task_id}
- a task with ownerGET /api/users/{user_id}
- a user with a list of owned tasksVersions:
python = ^3.11
django = ^4.1.5
django-ninja = ^0.20.0
Please let me know if you need more information.
Similar to #154
Beta Was this translation helpful? Give feedback.
All reactions