-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Comparing changes
Open a pull request
base repository: encode/django-rest-framework
base: 3.14.0
head repository: encode/django-rest-framework
compare: 3.15.2
Commits on Sep 22, 2022
-
Use correct class to indicate present deprecation (#8665)
`PendingDeprecationWarning` means "we plan to deprecate, but haven't yet." A feature that's to be deleted in the next release is not planned to be deprecated; it **is** deprecated. > Base class for warnings about features which are obsolete and expected > to be deprecated in the future, but are not deprecated at the moment. > > This class is rarely used as emitting a warning about a possible > upcoming deprecation is unusual, and DeprecationWarning is preferred for > already active deprecations. https://docs.python.org/3/library/exceptions.html#PendingDeprecationWarning Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 2de5081 - Browse repository at this point
Copy the full SHA 2de5081View commit details
Commits on Sep 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 73f4835 - Browse repository at this point
Copy the full SHA 73f4835View commit details
Commits on Sep 27, 2022
-
Update documentation on dependency installation (#8566)
We depend on pytz, but until late last year we got it implicitly through depending on Django. Since their release 4.0, however, they no longer depend on pytz; commit 250479d added the dependency directly to our metadata in setup.py, but the documentation about dependencies (most importantly, the instructions for new contributors) was left untouched. This commit updates the new contributor instructions to suggest an "editable installation" of the project at the step that previously had users manually install Django. In this mode, pip fetches and installs the project dependencies automatically (so in the unlikely event we grow another dependency, that doc doesn't need to be changed again) and makes the project available to the virtualenv's python as a normal package, but doesn't require reinstallation for mundane edits.
Configuration menu - View commit details
-
Copy full SHA for 3e51ba4 - Browse repository at this point
Copy the full SHA 3e51ba4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e398c5 - Browse repository at this point
Copy the full SHA 9e398c5View commit details
Commits on Oct 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 79de112 - Browse repository at this point
Copy the full SHA 79de112View commit details -
Update requirements-testing.txt (#8680)
* Update requirements-testing.txt * Update requirements-testing.txt
Configuration menu - View commit details
-
Copy full SHA for ca75300 - Browse repository at this point
Copy the full SHA ca75300View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7777cb - Browse repository at this point
Copy the full SHA e7777cbView commit details
Commits on Oct 4, 2022
-
Docs: Updated browsable-api.md (#8678)
- Replace the broken Bootswatch-Link with an Jsdelivr-Link as suggested at https://bootswatch.com/help/ - Updated the stated Bootstrap version - Added a note that the Bootstrap version must match the default one Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 99cf2c4 - Browse repository at this point
Copy the full SHA 99cf2c4View commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c10f226 - Browse repository at this point
Copy the full SHA c10f226View commit details
Commits on Oct 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d507cd8 - Browse repository at this point
Copy the full SHA d507cd8View commit details
Commits on Oct 11, 2022
-
Added examples to schema of CursorPagination (#8687)
* Added examples to schema of CursorPagination Fix https://github.com/encode/django-rest-framework/issues/8686 Added missing examples for CursorPagination class to disable warnings in https://github.com/tfranzel/drf-spectacular and make it consistent with other pagination classes. * Adapted test case for paginated response schema
Configuration menu - View commit details
-
Copy full SHA for 911b207 - Browse repository at this point
Copy the full SHA 911b207View commit details -
Preserve exception messages for wrapped Django exceptions (#8051)
* Preserve messages for wrapped Django exceptions * Fix the test * Update test_generics.py * Update test_generics.py Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 56946fa - Browse repository at this point
Copy the full SHA 56946faView commit details
Commits on Oct 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 20d347a - Browse repository at this point
Copy the full SHA 20d347aView commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1fd268a - Browse repository at this point
Copy the full SHA 1fd268aView commit details -
Avoid importing
django.test
package when not testing (#8699)Importing anything `rest_framework` causes `django.test` to be imported. This is because DRF registers a receiver on the `django.test_signals.setting_changed` signal. This is not really a problem, but it is good to avoid this because it bloats the memory with unnecessary modules (e.g. `django.test`, `django.core.servers.basehttp`, `socketserver`) and increases the startup time. It also doesn't feel right to import test code into non-test code. Try to import the signal from a core module if possible. Note that there's another `django.test` import in `MultiPartRenderer`, however this import is done lazily only if the functionality is used so can be easily avoided.
Configuration menu - View commit details
-
Copy full SHA for 9407833 - Browse repository at this point
Copy the full SHA 9407833View commit details
Commits on Oct 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b221aa2 - Browse repository at this point
Copy the full SHA b221aa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cb6937 - Browse repository at this point
Copy the full SHA 0cb6937View commit details -
Add a method for getting serializer field name (OpenAPI) (#7493)
* Add a method for getting serializer field name * Add docs and test Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 35c5be6 - Browse repository at this point
Copy the full SHA 35c5be6View commit details
Commits on Oct 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e354331 - Browse repository at this point
Copy the full SHA e354331View commit details -
Improve style, fix some typos (#8405)
* Improve style, fix some typos * Update docs/api-guide/fields.md Co-authored-by: Tom Christie <tom@tomchristie.com> Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 041b88f - Browse repository at this point
Copy the full SHA 041b88fView commit details
Commits on Oct 20, 2022
-
* Update quickstart.md * Use PEP 8 compliant import * Remove unauthorized password by Django (too common)
Configuration menu - View commit details
-
Copy full SHA for 2510456 - Browse repository at this point
Copy the full SHA 2510456View commit details
Commits on Nov 2, 2022
-
Update remoteok.io to remoteok.com Add pyjobs.com
Configuration menu - View commit details
-
Copy full SHA for 1142ee5 - Browse repository at this point
Copy the full SHA 1142ee5View commit details
Commits on Nov 10, 2022
-
Remove extraneous word "Both" (#8740)
* Remove extraneous word "Both" * Update Multiparser docs Co-authored-by: Lewis Kabui <lewisemm@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ae7a2b0 - Browse repository at this point
Copy the full SHA ae7a2b0View commit details
Commits on Nov 15, 2022
-
Fix Pytest's deprecation warnings about nose usage (#8758)
Pytest 7.2.0 deprecated plain `setup` and `teardown` functions and methods as nose idioms: https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23 `setup` can be safely replaced with `setup_method`: https://docs.pytest.org/en/stable/deprecations.html#setup-teardown Fixes: https://github.com/encode/django-rest-framework/issues/8757 Signed-off-by: Stanislav Levin <slev@altlinux.org> Signed-off-by: Stanislav Levin <slev@altlinux.org>
Configuration menu - View commit details
-
Copy full SHA for 78cdae6 - Browse repository at this point
Copy the full SHA 78cdae6View commit details
Commits on Nov 16, 2022
-
Possibility to remove trailing zeros on DecimalFields representation (#…
…6514) * Added normalize parameter to DecimalField to be able to strip trailing zeros. Fixes #6151. * Updated docs to include normalize option on DecimalField * Fixed linting error in test_fields * Removed comment and renamed normalize to normalize_output as suggested in code review Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for d5f228d - Browse repository at this point
Copy the full SHA d5f228dView commit details
Commits on Nov 17, 2022
-
Make request consistently available in pagination classes (#8764)
* Store request in CursorPagination field * Define request at start of pagination entrypoint
Configuration menu - View commit details
-
Copy full SHA for 759fc6f - Browse repository at this point
Copy the full SHA 759fc6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e05237 - Browse repository at this point
Copy the full SHA 3e05237View commit details -
Configuration menu - View commit details
-
Copy full SHA for df60510 - Browse repository at this point
Copy the full SHA df60510View commit details
Commits on Nov 18, 2022
-
pytest versions update (#8745)
* pytest versions update * pytest>=7.0.0,<8.0 * pytest>=7.2.0,<8.0 * pytest>=6.2.0,<8.0
Configuration menu - View commit details
-
Copy full SHA for 21fdf06 - Browse repository at this point
Copy the full SHA 21fdf06View commit details -
Configuration menu - View commit details
-
Copy full SHA for cac89ae - Browse repository at this point
Copy the full SHA cac89aeView commit details
Commits on Nov 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2a2b092 - Browse repository at this point
Copy the full SHA 2a2b092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 751808c - Browse repository at this point
Copy the full SHA 751808cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc300aa - Browse repository at this point
Copy the full SHA dc300aaView commit details
Commits on Nov 22, 2022
-
FloatField will crash if the input is a number that is too big (#8725)
* FloatField will crash if the input is a number that is too big * Added Unit test for float field overflow error catch * Removed random import * Removed additional imported ValidationError * Update rest_framework/fields.py * Update tests/test_fields.py Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9e56f54 - Browse repository at this point
Copy the full SHA 9e56f54View commit details -
Fixes instance check in ListSerializer.to_representation (#8726) (#8727)
* Fixes 'RelatedManager' object is not iterable in ListSerializer.to_representation.(#8726) * Change to only BaseManager * Commit unit test * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Format import * Format import Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 03c2ef1 - Browse repository at this point
Copy the full SHA 03c2ef1View commit details -
fix 404 when page query parameter is empty string (#8578)
* fix 404 when page query parameter is empty string * Update pagination.py * Update pagination.py Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for 0ae3323 - Browse repository at this point
Copy the full SHA 0ae3323View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8175f05 - Browse repository at this point
Copy the full SHA 8175f05View commit details -
Update 6-viewsets-and-routers.md (#8590)
* Update 6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md * Update docs/tutorial/6-viewsets-and-routers.md Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fd7d3a7 - Browse repository at this point
Copy the full SHA fd7d3a7View commit details -
Update schema generation doc & add deprecation notice #8453 (#8773)
* Update schema generation doc & add deprecation notice #8453 * Update docs/topics/documenting-your-api.md Co-authored-by: Tom Christie <tom@tomchristie.com> * Update docs/topics/documenting-your-api.md Co-authored-by: Tom Christie <tom@tomchristie.com> * Update docs/topics/documenting-your-api.md Co-authored-by: Tom Christie <tom@tomchristie.com> Co-authored-by: T. Franzel <13507857+tfranzel@users.noreply.github.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com> Co-authored-by: Tom Christie <tom@tomchristie.com>
Configuration menu - View commit details
-
Copy full SHA for b87699c - Browse repository at this point
Copy the full SHA b87699cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c0d95cb - Browse repository at this point
Copy the full SHA c0d95cbView commit details
Commits on Nov 23, 2022
-
Represent SafeString as plain string on schema rendering. (#8429)
* Use SafeString.represent_str to represent SafeString as str * Add SafeString yaml rendering test
Configuration menu - View commit details
-
Copy full SHA for ebde56b - Browse repository at this point
Copy the full SHA ebde56bView commit details
Commits on Nov 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9e328a9 - Browse repository at this point
Copy the full SHA 9e328a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52f4139 - Browse repository at this point
Copy the full SHA 52f4139View commit details
Commits on Nov 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4ef0fc1 - Browse repository at this point
Copy the full SHA 4ef0fc1View commit details -
Without adding the URLs manually, the users and groups APIs were not usable. My env: (venv) ➜ tutorial pip freeze asgiref==3.5.2 astroid==2.12.13 autopep8==2.0.0 dill==0.3.6 Django==4.1.3 djangorestframework==3.14.0 isort==5.10.1 lazy-object-proxy==1.8.0 mccabe==0.7.0 platformdirs==2.5.4 pycodestyle==2.10.0 pylint==2.15.6 pylint-django==2.5.3 pylint-plugin-utils==0.7 pytz==2022.6 sqlparse==0.4.3 tomli==2.0.1 tomlkit==0.11.6 wrapt==1.14.1
Configuration menu - View commit details
-
Copy full SHA for 3bf6117 - Browse repository at this point
Copy the full SHA 3bf6117View commit details
Commits on Nov 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5435b2c - Browse repository at this point
Copy the full SHA 5435b2cView commit details -
Remove Core API mentions from docs (#8780)
* remove coreapi generator mentions & hidden docs * remove coreapi doc & redirect broken links to github snapshot
Configuration menu - View commit details
-
Copy full SHA for f0095b4 - Browse repository at this point
Copy the full SHA f0095b4View commit details
Commits on Nov 29, 2022
-
Avoid inline script execution for injecting CSRF token (#7016)
Scripts with type="application/json" or "text/plain" are not executed, so we can use them to inject dynamic CSRF data, without allowing inline-script execution in Content-Security-Policy.
Configuration menu - View commit details
-
Copy full SHA for 6ec6dde - Browse repository at this point
Copy the full SHA 6ec6ddeView commit details -
Make browsable API compatbile with strong CSP (#8784)
Co-authored-by: Alexander Bliskovsky <abliskovsky@fusionbox.com>
Configuration menu - View commit details
-
Copy full SHA for 1ae812e - Browse repository at this point
Copy the full SHA 1ae812eView commit details
Commits on Dec 1, 2022
-
Fix bug in validators documentation (#8779)
Function validators seem to have to return their value (which will become part of `validated_data`) as part of their signature.
Configuration menu - View commit details
-
Copy full SHA for 614bd87 - Browse repository at this point
Copy the full SHA 614bd87View commit details
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.