Skip to content

CI test: Fix composite pk proxy subclass - #2

Open
h4l wants to merge 1 commit into
mainfrom
fix-composite-pk-proxy-subclass
Open

CI test: Fix composite pk proxy subclass#2
h4l wants to merge 1 commit into
mainfrom
fix-composite-pk-proxy-subclass

Conversation

@h4l

@h4l h4l commented Nov 4, 2025

Copy link
Copy Markdown
Owner

Trac ticket number

ticket-XXXXX

Branch description

Provide a concise overview of the issue or rationale behind the proposed changes.

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@h4l
h4l force-pushed the fix-composite-pk-proxy-subclass branch 6 times, most recently from a4b0c6d to b735860 Compare November 4, 2025 13:30
…site pk.

Proxy models subclassing a model with a CompositePrimaryKey were
incorrectly reporting check errors because the check that requires only
local fields to be used in a composite pk was evaluated against the proxy
subclass, which has no fields.

To fix this, composite pk field checks are not evaluated against
proxy subclasses, as none of the checks are applicable to proxy
subclasses. This also has the benefit of not double-reporting real check
errors from an invalid superclass pk.

Thanks Clifford Gama for the review.
@jacobtylerwalls
jacobtylerwalls force-pushed the fix-composite-pk-proxy-subclass branch from b735860 to f5ccd33 Compare November 4, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant