tortoise / tortoise/tortoise-orm

[Question] How to exclude reverse relations in pydantic_model_creator?

Open
#510 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.6k
Forks
516
Avg merge
2d 21h
Merged PRs (30d)
9

Description

As the title says, I don't know if it's possible to exclude all reverse relations when creating Pydantic models via pydantic_model_creator or PyndanticMeta

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pydantic_model_creator and PyndanticMeta entry points named in the question, then inspect how reverse relations are handled and what existing documentation covers. Done would require a confirmed answer or a clearly defined, documented way to exclude all reverse relations; no files or tests are identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.