Skip to content

Add edge cases for django reverse relations#2091

Closed
migeed-z wants to merge 5 commits intofacebook:mainfrom
migeed-z:export-D90521591
Closed

Add edge cases for django reverse relations#2091
migeed-z wants to merge 5 commits intofacebook:mainfrom
migeed-z:export-D90521591

Conversation

@migeed-z
Copy link
Contributor

Summary: Those are some final corner cases before I followup with the full implementation

Differential Revision: D90521591

@github-actions

This comment has been minimized.

migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

Those are some final corner cases before I followup with the full implementation

Differential Revision: D90521591
@meta-codesync
Copy link

meta-codesync bot commented Jan 13, 2026

@migeed-z has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90521591.

@github-actions

This comment has been minimized.

…rd) (facebook#2087)

Summary:

Here, we test the related_name keyword which allows us to customize the reverse relation

Reviewed By: aleivag

Differential Revision: D90517278
Summary:

We can use the "+" symbol to avoid creating a reverse relation. This is important to test so we can make sure we are avoiding creating that field if it is not needed

Reviewed By: aleivag, yangdanny97

Differential Revision: D90517596
…book#2089)

Summary: Pull Request resolved: facebook#2089

Reviewed By: yangdanny97

Differential Revision: D90517772
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
Summary:

Those are some final corner cases before I followup with the full implementation

Differential Revision: D90521591
@github-actions
Copy link

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

@migeed-z migeed-z closed this Jan 13, 2026
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

Those are some final corner cases before I followup with the full implementation

Differential Revision: D90521591
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

Those are some final corner cases before I followup with the full implementation

Differential Revision: D90521591
meta-codesync bot pushed a commit that referenced this pull request Jan 14, 2026
Summary:
Pull Request resolved: #2091

Those are some final corner cases before I followup with the full implementation

Reviewed By: rchen152

Differential Revision: D90521591

fbshipit-source-id: 1707749378adbfaaf68cf473370cde609e93641f
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.

1 participant