django-rest-framework/docs/api-guide
rizwanshaikh 7a9db57eaf
Propagate 'default' from model_field to serializer field. (#9030)
* Propagate 'default' from model_field to serializer field

Fix #7469.

Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>

* updated field default on serializer according to openapi generation and added that to options action response

* added notes regarding default value propagation from model to serializer field

* updated note

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md

* Update docs/api-guide/fields.md

---------

Co-authored-by: John Parton <john.parton.iv@gmail.com>
Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
Co-authored-by: Rizwan Shaikh <rshaikh@ces-ltd.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2023-08-07 12:35:54 +06:00
..
authentication.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
caching.md docs: add example for caching (#7118) 2021-03-09 11:49:19 +00:00
content-negotiation.md Docs: Convert all tabs into spaces (#8692) 2022-10-12 11:23:45 +01:00
exceptions.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
fields.md Propagate 'default' from model_field to serializer field. (#9030) 2023-08-07 12:35:54 +06:00
filtering.md Align SearchFilter behaviour to django.contrib.admin search (#9017) 2023-07-25 19:01:23 +06:00
format-suffixes.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
generic-views.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
metadata.md Fix schema endpoint example (#7178) 2020-05-05 14:04:35 +01:00
pagination.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
parsers.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
permissions.md docs: Fix authentication / authorization mixup (#8930) 2023-04-04 14:44:59 +06:00
relations.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
renderers.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
requests.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
responses.md Fix link to Django docs (#7040) 2019-11-06 09:34:28 -08:00
reverse.md Fix Links in Documentation to Django reverse and reverse_lazy (#8986) 2023-05-17 11:46:48 +06:00
routers.md Add SimplePathRouter (#6789) 2023-01-12 14:16:48 +06:00
schemas.md Update schema generation doc & add deprecation notice #8453 (#8773) 2022-11-22 19:53:54 +06:00
serializers.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
settings.md Update DEFAULT_SCHEMA_CLASSES default value in Settings docs (#7014) 2019-11-06 21:37:13 +01:00
status-codes.md Added http 102, 103, 421, and 425 status codes in documentation (#8763) 2022-11-17 13:13:09 +00:00
testing.md Link added for Test Case Classes and corrected stable link for Refresh from DB (#8381) 2022-03-23 12:07:44 +00:00
throttling.md Docs: Convert all tabs into spaces (#8692) 2022-10-12 11:23:45 +01:00
validators.md Fix example of requires_context attribute (#8952) 2023-05-31 10:36:21 +06:00
versioning.md Updated url() with re_path() in Versioning docs. (#7043) 2019-11-07 13:20:56 +01:00
views.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
viewsets.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00