Skip to content

fix Add support for Django reverse relationships for cross module #2071 - #5130

Open
asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:2071
Open

asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:2071

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #2071

By let user write these models down in configure.

  • I am a human, and I fully understand the code I am submitting.

Test Plan

add test

Reverse relationship discovery needs an explicit list of model modules to support lazy loading. Add the configuration contract, validation, and reference documentation for that list.
Load explicitly configured model modules when solving reverse relationships and record their dependencies. This supports cross-module relations with lazy module loading and invalidation, without scanning all loaded modules.
@meta-cla meta-cla Bot added the cla signed label Oct 7, 2026
@github-actions github-actions Bot added the size/l label Oct 7, 2026
@meta-codesync

meta-codesync Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D123799553. (Because this pull request was imported automatically, there will not be any future comments.)

@asukaminato0721

Copy link
Copy Markdown
Collaborator Author

todo: this will need manually add configure, is it possible to do some cold start?

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@MorganBennetDev

Copy link
Copy Markdown

Not familiar with how the Rust code works, but will this support globs (src/*/models.py) or only explicit paths?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Django reverse relationships

3 participants