-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INTPYTHON-393 Remove ObjectIdAutoField acceptance of integer values #256
Conversation
68c026b
to
c280480
Compare
aea0911
to
5e98655
Compare
2e4bc3c
to
7794da2
Compare
869df34
to
e6f36fe
Compare
.github/workflows/test-python.yml
Outdated
@@ -33,7 +33,7 @@ jobs: | |||
uses: actions/checkout@v4 | |||
with: | |||
repository: 'mongodb-forks/django' | |||
ref: 'mongodb-5.1.x' | |||
ref: 'objectid-no-int' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this branch get merged into both 5.1 and 5.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course. Whenever you see a change like this is just means we needed to use a temporary staging branch until the patch is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
e6f36fe
to
a67ba32
Compare
a67ba32
to
59ace00
Compare
@timgraham FYI I'm not sure why, but this PR makes DRF behave worse e.g. before this PR was merged (and with changes made in: encode/django-rest-framework#9656) I get a reasonable test failure:
With current main I get:
The former can be fixed, but the latter may be a regression since it appears to prevent DRF from configuring it's own serializer_field_mapping. |
fixes INTPYTHON-393
Most of the work for this is adapting Django's test suite: mongodb-forks/django#15