cyap
eebc579e9b
Fix typo ( #6785 )
2019-07-05 15:46:51 +01:00
linchiwei123
373195996e
Update fields.md ( #6784 )
...
Example ==> Example
2019-07-05 14:24:52 +01:00
linchiwei123
8fbf8c3fa3
Update serializers.md ( #6783 )
2019-07-05 09:11:20 +01:00
Ryan P Kilby
976739206c
Don't render extra actions when unauthenticated ( #6775 )
2019-07-04 14:54:16 +01:00
Alex Ayon
a3eeeb20e7
Update 1-serialization.md ( #6781 )
...
Assigning a sorted list to STYLE_CHOICES by using a list comprehension.
2019-07-04 13:41:15 +01:00
johnthagen
989aeca205
Add link to django-filter on first reference ( #6777 )
2019-07-03 10:43:30 -07:00
Étienne Noss
f5470ab9e2
docs: update http method override middleware example ( #6776 )
2019-07-03 10:23:35 +01:00
Florian Bruhin
43d4736802
Fix rel=prev/next in docs ( #6650 )
2019-07-02 19:04:49 -07:00
Michael
1256d5363d
Add project_urls to setup.py ( #6625 )
2019-07-02 18:56:26 -07:00
Ryan P Kilby
e4e75f1c7c
Strip null characters from search param ( #6774 )
2019-07-02 11:33:48 -07:00
Ryan P Kilby
280014fe37
Update docs for pagination settings ( #6772 )
2019-07-02 12:09:45 +01:00
Ryan P Kilby
41d5338ba6
Translate Throttled exception messages ( #6771 )
2019-07-02 11:21:40 +01:00
Ryan P Kilby
da06240257
Fix ModelField max_length argument ( #6773 )
2019-07-01 19:14:45 -07:00
Karambir Singh Nain
a7778897ad
Fix ArrayField kwargs mapping for blank/allow_empty ( #6758 )
...
Postgres ArrayField blank=True should allow empty Lists in Serializer
2019-07-01 17:34:34 -07:00
Reupen Shah
3242adf058
Enforce allow_empty=False during partial validation of parent serializer ( #6512 )
...
Refs #6509
This enforces allow_empty=True when a ListSerializer is a child of another serializer and partial validation is being performed on the parent serializer.
This is because partial validation should allow fields to be omitted, but should not cause values that are invalid without partial validation to become valid.
This effectively reverts #4222 . None of the tests added in that PR fail if the associated change is removed, so I‘m not sure what that PR was trying to fix.
2019-07-01 13:30:16 +01:00
Michael
79b2350b54
[fields] Format error message only if params exist ( #6624 )
...
This prevents exceptions when the error message contains `%`, but is
not intended for formatting. Django itself does the same:
6866c91b63/django/core/exceptions.py (L168-L169)
Fixes encode/django-rest-framework#6622
2019-07-01 13:28:16 +01:00
Ryan P Kilby
7179ea9984
Raise exception when field source is a built-in ( #6766 )
2019-07-01 13:25:47 +01:00
Ryan P Kilby
91ea138406
Allow redundant SerializerMethodField method names ( #6767 )
2019-07-01 13:22:03 +01:00
Greg Curtis
42fd179d4e
upgrade jQuery to latest version ( #6728 )
2019-07-01 13:16:21 +01:00
Ryan P Kilby
e36ba9c46e
Add twine check
to publish process ( #6770 )
2019-07-01 00:19:12 -07:00
Ryan P Kilby
c04d6eac43
Update pytest ( #6768 )
...
* Update pytest to 5.x
* Ensure test de-monkeypatches auth on failure
* Fix pytest.raises compat issue
2019-06-30 19:08:52 -07:00
Ryan P Kilby
82c2b5c3e7
Update mkdocs ( #6769 )
2019-06-30 19:04:36 -07:00
Jon Besga
9a429a1c2e
Fix custom authentication example ( #6640 )
2019-06-30 17:55:54 -07:00
Ryan P Kilby
df1d146ee7
Remove old documentation ( #6765 )
2019-06-28 16:03:00 -07:00
Florimond Manca
af2a2e6010
Update description and link to djangorestframework-api-key ( #6764 )
2019-06-28 15:40:31 -07:00
Jan Pieter Waagmeester
cfd3ea0996
TokenAdmin: add 'user' to autocomplete_fields ( #6762 )
...
TokenAdmin is unusable with a big number of user records (in this case ~150k). Django 2.0 added the [ModelAdmin.autocomplete_fields](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields ) option to use select2 to provide a better user experience.
If support for django 1.11 is dropped, this change would make the `TokenAdmin` usable again.
2019-06-28 13:44:15 +01:00
bonohubby
f76480a127
Fix typo in docs ( #6757 )
2019-06-25 10:08:46 +01:00
Tanner Rollefson
a1921b1adb
Add djangorestframework-mvt to third party packages ( #6756 )
2019-06-24 15:44:22 -07:00
Robert Singer
80e89c75c7
Add DRF Access Policy to 3rd party packages ( #6723 )
2019-06-23 13:18:08 -07:00
Kryštof Řeháček
6a95451d72
Fixes #6751 - ModelSerializer fields does not get updated correctly when signals are connected to some fields ( #6752 )
...
* fixes #6751
* reverted condition
* save instance before setting m2m fields
* added comment why m2m fields are saved after instance
* removed blank line
* added test for the issue 6751
2019-06-22 09:14:15 +01:00
Min ho Kim
72de94a05d
Fix typos in docs ( #6747 )
2019-06-18 12:58:01 -07:00
Xavier Ordoquy
809a6acd36
Add --urlconf to the generateschema command ( #6696 )
2019-06-09 15:23:52 +02:00
Alan Crosswell
4d228257ac
Retain declared path ordering in OpenAPI YAML output. ( #6680 )
...
* Add pyyaml.dump(..., sort_keys=False) to not sort openapi keys alphabetically
* Retain ordering of paths as provided in urlconf in OpenAPI schemas.
2019-06-09 14:58:02 +02:00
Alan Crosswell
819c46ea80
Add --generator_class CLI option to generateschema ( #6735 )
...
* add --generator_class CLI option to generateschema
* Add test for generateschema —generator_class flag.
2019-06-09 14:43:54 +02:00
Alan Crosswell
2d65f82dd7
Generate OpenAPI schema field types from validators. ( #6674 )
2019-06-09 14:42:56 +02:00
Alan Crosswell
a63860fc8b
Corrected openapi.SchemaGenerator path prefixes. ( #6724 )
2019-06-09 14:29:55 +02:00
Hasan Ramezani
60bcc93202
Remove duplicate test in tests/test_utils.py
( #6736 )
2019-06-07 14:45:34 +01:00
Ryan P Kilby
9ac9c1b2ea
Update status code docs ( #6732 )
2019-06-05 17:51:50 -07:00
Tom Christie
6a8575b042
Sponsor update ( #6727 )
...
* Sponsor updates
* Sponsor Update
2019-06-04 12:03:31 +01:00
Tom Christie
3135ae86c9
Create FUNDING.yml
2019-06-04 09:00:11 +01:00
Ryan P Kilby
3e210ae48d
Update markdown preprocessor registration ( #6722 )
2019-05-31 14:11:58 -07:00
Adam
6aac9d2be1
Remove references to django-crispy-forms ( #6600 )
2019-05-30 19:47:30 -07:00
Jon Dufresne
b37aa284eb
Remove unnecessary bytes() calls ( #6626 )
2019-05-30 15:05:27 -07:00
Florian Wendelborn
6bd25c09a6
Add Multiple HTTP Statuses ( #6706 )
2019-05-30 14:32:46 -07:00
Timothy Allen
8430f3e5b6
Fix typo in github.com URL. ( #6720 )
2019-05-30 12:23:37 -07:00
Ran Benita
c2293e9f25
Improve performance of lazy validation message formatting ( #6709 )
2019-05-29 11:32:03 -07:00
Rodolfo Carvalho
62ed1f8270
Use yaml.safe_load instead of load ( #6719 )
...
Use of PyYAML's yaml.load function without specifying the Loader
parameter has been deprecated, see https://msg.pyyaml.org/load .
Earlier versions of PyYAML already had the alternative safe_load
function, which limits the loader to a subset of YAML constructs, that
is enough for what we need here.
Fixes #6677
2019-05-29 09:51:24 -07:00
Monte Hellawell
063f0de949
Move security information to the GitHub security tab ( #6716 )
...
* Create SECURITY.md
* Update security policy links in README.md
2019-05-29 09:57:07 +01:00
Dani Hodovic
10a0b42b74
Add more DRF job sites ( #6691 )
2019-05-24 12:50:15 +01:00
Raffaele Salmaso
514033815d
Allow JSONField encoder customization. ( #6713 )
2019-05-24 12:47:35 +01:00