Commit Graph

8970 Commits

Author SHA1 Message Date
kosbemrunal
8d4c2d0843
Improve PageNumberPagination docs by adding page_query_param customization example (#9904)
* Improve PageNumberPagination docs by adding page_query_param customization example

* Improve pagination accessibility by adding aria attributes and rel navigation hints

* Revert template changes; moved to separate accessibility PR

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-01 19:09:05 +00:00
Bruno Alla
190aae3c2d
Switch to mkdocs material theme for documentation (#9849)
* Switch to mkdocs material theme

* Add logo

* Style badges on homepage

* Basic dark theme

* Enable a few theme features

* Customise large logo for dark theme

* CSS tweaks

* Add background grid back

* Switch to mkdocs material theme

* Add logo

* Style badges on homepage

* Basic dark theme

* Add syntax highlighting to code snippets

* Convert homepage snippets to code fences

* Update homepage logos

* Move mkdocs-material to pyproject.toml docs group

* Keep existing syntax highlighting

* Remove old docs_theme folder

* Tweak syntax highlighting colors on dark theme

* Add readthedocs config file

* Fix end of file empty lines

* Upgrade pip during install

* Remove custom styling for .prettyprint

* Remove .prettyprint border entirely

* Make tabs sticky in navbar

* Merge page ToC with navigation

* Tweak colors for more accessible contrast

* Add Figma file for the logos

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Adjust styles for badges

* Enable content tabs for OS specific instructions

https://squidfunk.github.io/mkdocs-material/reference/content-tabs/

* Add icons for content tabs

* Standardize on .venv for virtualenv name in docs

* Add note about bash for Windows

---------

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-02 00:59:00 +06:00
Julian Geißler
40e77f0716
Update tutorial serialization page (#7945) 2026-02-27 14:44:10 +01:00
Alex
b659c2bf48
Add missing Russian translation (#9903) 2026-02-26 11:59:54 +00:00
fbozhang
a4504226fc
Preserve ordering in MultipleChoiceField (#9735)
* fix: MultipleChoiceField use ordered sort

(cherry picked from commit 8436483e66af3d1317d99335b7fae95c1f58d13a)

* test: fix unit tests

(cherry picked from commit 6428ac4a05f4a33eb0813cc56d584f56e7bfac89)

* test: test TestMultipleChoiceField can json serializable

(cherry picked from commit 12908b149c446598682269f8df78290fa8268982)

* test: fix unit test

(cherry picked from commit 73a709c4b04ae510d61f2d426f93f6aef98b09fd)

* minor: rest old formatting

* fix: using pytest.fail to test

* Update test_fields.py

* Update test_fields.py

* Update test_fields.py

* test: add test cases

* docs: update docs

* Update docs/api-guide/fields.md

* Skip inner list allocation

* Fix punctuation

---------

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2026-02-26 09:40:41 +00:00
Kelson Brito
a3f939f4f9
docs: fix 'Startup up' typo in README (#9901) 2026-02-25 14:16:49 +06:00
Shrikant Sudam Giri
1792a2fccc
Add test to cover nested serializer with parent-level ValidationError (#9854)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2026-02-24 14:23:58 +00:00
MoeSalah1999
64bee7ff28
Improve docstring for get_serializer to clarify behavior (#9870) 2026-02-21 14:18:05 +01:00
0Nafi0
04b0d7f580
Warn against trailing slashes in router prefixes in documentation (#9861) 2026-02-21 14:16:37 +01:00
Bruno Alla
3eb6e55946
Update FUNDING.yml (#9878)
* Update FUNDING.yml

* Use dedicated open_collective key instead of custom
2026-02-19 14:00:10 +01:00
Mathieu Dupuy
ecbe447baf
Fix and improve French translations (#9896)
* fix 'charactère'

* Slight improvements

* "Vérifier que" -> "Assurez-vous que"
* "Entrée invalide" -> "Saisie invalide"
* "Pas trouvé" -> "Non trouvé"

* Run compilemessages

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2026-02-19 08:14:16 +00:00
Aldo Mateli
e45518a132
Add wireup to third-party-packages documentation page (#9893) 2026-02-16 10:50:48 +00:00
Bruno Alla
f38354943c Add category for Packaging in release notes 2026-02-11 20:54:53 +00:00
Bruno Alla
91b4fae3e7
Configure automatic generation of release notes in GitHub (#9890) 2026-02-11 20:37:23 +00:00
Bruno Alla
80ac0a29dd
Merge pre-commit workflow into main (#9857)
* Merge pre-commit workflow into main

* Update build status screenshot
2026-02-11 20:36:31 +00:00
Bruno Alla
cf38c94ec1
Pin setuptools version to keep running coreapi tests (#9892) 2026-02-10 20:31:03 +06:00
dependabot[bot]
1b63dce808
Bump the test group with 1 updates and remove attrs pin (#9886) 2026-02-07 13:25:54 +00:00
dependabot[bot]
8fe9c5497e
Bump the optional group with 4 updates (#9888)
* Bump the optional group with 4 updates

Updates the requirements on [coreapi](https://github.com/core-api/python-client), [django-guardian](https://github.com/django-guardian/django-guardian), [pygments](https://github.com/pygments/pygments) and [pyyaml](https://github.com/yaml/pyyaml) to permit the latest version.

Updates `coreapi` from 2.3.1 to 2.3.3
- [Commits](https://github.com/core-api/python-client/compare/2.3.1...2.3.3)

Updates `django-guardian` to 3.2.0
- [Release notes](https://github.com/django-guardian/django-guardian/releases)
- [Commits](https://github.com/django-guardian/django-guardian/compare/v2.4.0...3.2.0)

Updates `pygments` to 2.19.2
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.17.0...2.19.2)

Updates `pyyaml` to 6.0.3
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.3/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...6.0.3)

---
updated-dependencies:
- dependency-name: coreapi
  dependency-version: 2.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: optional
- dependency-name: django-guardian
  dependency-version: 3.2.0
  dependency-type: direct:development
  dependency-group: optional
- dependency-name: pygments
  dependency-version: 2.19.2
  dependency-type: direct:development
  dependency-group: optional
- dependency-name: pyyaml
  dependency-version: 6.0.3
  dependency-type: direct:development
  dependency-group: optional
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add back setuptools

Was added to testing requirements in
https://github.com/encode/django-rest-framework/pull/9818

But that was lost in:
https://github.com/encode/django-rest-framework/pull/9842

Moving to optional dep group as it's only needed for coreapi

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2026-02-07 13:12:23 +00:00
dependabot[bot]
7aa67183fe
Bump mkdocs from 1.6.0 to 1.6.1 in the docs group (#9887)
Bumps the docs group with 1 update: [mkdocs](https://github.com/mkdocs/mkdocs).


Updates `mkdocs` from 1.6.0 to 1.6.1
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.6.0...1.6.1)

---
updated-dependencies:
- dependency-name: mkdocs
  dependency-version: 1.6.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: docs
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-05 21:06:46 +06:00
Pravin
e49d025f2d
Setup Dependabot for automating dependencies updates (#9885)
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
2026-02-05 14:27:45 +00:00
Pravin
64f6580bf3
Update pytest versions (#9881)
* Update pytest versions

* Ignore deprecation warnings from coreapi

* ignore coreapi deprecation warnings during test startup

* Use pytest directly in tox and relax version pins
2026-02-05 20:02:12 +06:00
Bruno Alla
b5455c5daf
Fail CI if broken links in the docs (#9877)
* Fail CI if broken links in the docs

* Fix broken links in the docs
2026-02-05 00:02:04 +00:00
sobolevn
b47b366847
Fix typo in authentication.md (#9880) 2026-02-03 13:30:18 +00:00
Lorenzo Guideri
249fb47842
Clarify operators precendence in permissions documentation (#9875) 2026-01-24 14:33:10 +00:00
Rispa Joseph
c8af56d260
Clarify deprecation of built-in OpenAPI documentation (#9874) 2026-01-24 14:12:00 +00:00
Pravin
9da0ce25b7
Update pre-commit hooks versions (#9872) 2026-01-24 14:08:06 +00:00
Nexapy Technologies
1b3916120e
Fix uritemplate reference link typo (#9867) 2026-01-13 22:14:52 +00:00
Pravin
3f190b7ddc
Cleanup pre-commit config by moving codespell configuration to pyproject.toml (#9864) 2026-01-05 15:49:40 +01:00
Yousef Abu Shanab
d881b27811
docs: update drf-restwind images to reflect latest version (#9863) 2026-01-05 15:44:51 +01:00
Mariusz Felisiak
71f05e543e
Remove django-hstore and django-rest-framework-hstore from 3rd party serializers documentation page (#9860)
Both are unmaintained for many years and we have builtin HStoreField.
2026-01-02 14:56:49 -03:00
Pravin
48fe0750b5
Add concurrency in CI (#9855) 2025-12-23 11:28:59 +00:00
Pravin
52cf0f8970
Add dependabot cooldown (#9856) 2025-12-23 00:43:52 +00:00
Pravin
edba7ad774
Removed requirements txt files from project. (#9842)
* removed requirements txt files

* Updated Testing section from Contributing.md

* updated command to install dependencies for documentation in CI

* updated tox.ini

* build: Adopt PEP 735 for development dependency management

* Update installation commands for dependency groups in tox.ini and main.yml

* update installation command in testing section of contributing docs

* Clean up old `requirements text files` references in workflows and docs

* Removed references to `requirements.txt` in GitHub Actions workflows.
* Updated `mkdocs-deploy.yml` and `main.yml` to install dependencies using `pyproject.toml`.
* Cleaned up documentation to remove mentions of the `requirements` folder.

* Fix invalid pyproject.toml

Project's URLs should be in the [project] table

* Keep full versions in package groups

* Specify all tox deps as dependency groups

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-23 02:23:10 +06:00
Shrikant Sudam Giri
055c422b34
Add copy button to code blocks in documentation (#9830)
* Add copy button to code blocks for improved documentation usability

* Add copy button to code blocks for improved documentation usability

* Add copy button to code blocks for improved documentation usability

* Make "Copy" button smaller

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-15 16:01:37 +00:00
Rodrigo
d0a5d5e7ca
Fix broken link and formatting in documentation (#9848) 2025-12-12 11:54:09 +00:00
Bruno Alla
e221d9a1d6
Style notes using admonition in the documentation (#9846) 2025-12-12 11:53:09 +00:00
therealjozbert
78db4dd543
Add tests for .data access before .is_valid() in relation serializers (#9845)
- Add test_data_cannot_be_accessed_prior_to_is_valid to HyperlinkedManyToManyTests
- Add test_data_cannot_be_accessed_prior_to_is_valid to PKManyToManyTests
- Remove TODO comments that were addressed
- Ensures AssertionError is raised when accessing .data before validation

Fixes TODO items in:
- tests/test_relations_hyperlink.py (line 71)
- tests/test_relations_pk.py (line 97)

Co-authored-by: therealjozbert <info@therealjozbert.com>
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
2025-12-09 23:27:42 +06:00
Bruno Alla
3a70eb2ff6
Style warnings using admonition (#9844)
https://python-markdown.github.io/extensions/admonition/
2025-12-09 13:08:06 +00:00
Mahdi
cfc067be30
Add warning regarding .as_view() with ViewSet action in the documentation (#9823) 2025-12-09 08:59:11 +00:00
Daniel Nigusse
af32103283
Add django-lisan to third-party packages documentation page (#9767)
* Add django-lisan to third-party packages

* Update django-lisan entry in third-party packages documentation to include a reference link

* Remove inline link

* Replace NBSP by actual spaces

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-08 08:34:09 +00:00
Manolis Stamatogiannakis
d6ffc95532
Updates for TokenAdmin. (#9836)
- Respect USERNAME_FIELD of the user model.
- Default ordering by username.
- Filter by creation date.

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
2025-12-08 09:06:33 +06:00
Rodrigo
40172399af
Fix Documentation (#9832) 2025-12-05 12:01:25 +00:00
João Victor Pinheiro Reis
5019582178
Update Brazilian Portuguese translations (#9828)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-05 11:59:35 +00:00
Pravin
2da99035cc
- Update README.md to include Django 6.0 in the requirements section. (#9839)
- Add Django 6.0 to the supported Django versions in pyproject.toml.
2025-12-05 17:23:20 +06:00
Mehraz Hossain Rumman
0fbaebc3dd
Add Django 6.0 support (#9819)
* adding django6.0a support

* test fixed

* gitignore updated

* pre-commit applied

* test issue 1386 fixed

* fixing test issue 1386

* .gov domain handled for different version

* correct urls updated

* Modify URL test cases for Django version compatibility

Adjust URL test cases based on Django version.

* Add Django import to test_templatetags.py

* Reorder import statements in test file

* Update tox.ini

* Update tox.ini

* Revert unnecessary changes in tests

* Default to AutoField for now

* Add Django upper bound to base and dist tests to avoid testing on unsupported versions

---------

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-05 16:30:00 +06:00
Bruno Alla
7eed4ab34d
Add upper bounds to tox targets (#9838)
To avoid them breaking when a new version of Django comes out

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
2025-12-05 15:53:33 +06:00
Shrikant Sudam Giri
e027f0cb77
Fix Windows test failures and remove debug prints for DRF (#9808) 2025-12-05 08:45:01 +00:00
Pravin
fc17a60b2d
Use pyproject.toml for package data, clean MANIFEST.in (#9825) 2025-12-03 16:22:25 +06:00
Pravin
442444f0be
Replace “let’s” with “lets” where grammatically correct (#9833) 2025-12-02 16:32:00 +00:00
HoodyH
f9f10e041f
Bigint coerce to string (#9775)
* feat: BinIntegerField and COERCE_BIGINT_TO_STRING setting, bigint now can have string api representation

* fix: wrong import location in serializers.py

* feat: updated with changes requests
- typo fix
- value test fix
- import order fix

* Update tests/test_fields.py

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md



* refactor: changed BigIntegerField.to_representation simplified + calling super

---------

Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
2025-12-02 20:44:53 +06:00