Carlton Gibson
e309a4f0b8
Fix OpenAPI path generation with common prefixes.
...
Closes #6675 . Closes #6823 .
2019-07-24 11:13:30 +02:00
Carlton Gibson
30a21a98dc
Add test for OpenAPI SchemaGenerator url argument.
2019-07-24 11:13:30 +02:00
Carlton Gibson
178a2dc786
Correct OpenAPI test for common prefixes.
2019-07-24 11:13:30 +02:00
Daniel Alvarez
2138f558ce
Added mapping of ListField.child type for OpenAPI Schemas.
2019-07-24 11:09:57 +02:00
Muammar ibn Faisal
f7c3220fdb
Ability to specify urlconf in include_docs_urls added ( #6824 )
...
There is a problem in the current implementation that if one exports docs via `include_docs_urls` he will be using `ROOT_URLCONF` (https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/generators.py#L73 ), which is a big problem, if one is working with subdomains and he has sets of disjoint URLs.
This simple fix allows to pass through forgotten `urlconf` parameter.
2019-07-23 12:06:03 +01:00
Bary Levi
ea2ebf61cb
fix quote was outside of inline code ( #6830 )
2019-07-22 13:02:17 +01:00
linchiwei123
da1c6d4129
Fix indent ( #6825 )
2019-07-18 23:09:04 -07:00
Tom Christie
044252af1c
Version 3.10.1 ( #6817 )
...
* Ensure that requiring 'uritemplate' does not also require 'coreapi'
* Don't include autocomplete fields on TokenAuth admin
* Version 3.10.1
2019-07-17 14:17:45 +01:00
Carlton Gibson
9114034856
Update Django Filter dependency for OpenAPI schema support. ( #6812 )
2019-07-17 06:29:28 +02:00
Carlton Gibson
4991e4dbbe
Merge pull request #6813 from dalvtor/fix-schemas-docs
...
Fixes import in the schemas documentation
2019-07-16 23:03:13 +02:00
Daniel Alvarez
316526d877
Fixes import in the schemas documentation
2019-07-16 21:32:19 +01:00
Ryan P Kilby
0cb2523927
Update docs search plugin ( #6810 )
2019-07-16 13:00:45 -07:00
Tom Christie
a4c2d4f0d5
Fix side nav in project docs
2019-07-16 09:31:29 +01:00
Tom Christie
908516f2bd
Fix pagination docs meta information
2019-07-15 20:14:59 +01:00
Ryan P Kilby
0cb6b63bde
Use 'url' template filter in docs ( #6805 )
2019-07-15 20:11:49 +01:00
Tom Christie
6499378fc3
3.10 release notes tweaks
2019-07-15 12:38:28 +01:00
Tom Christie
9eaf49dab9
Version 3.10 ( #6802 )
...
* 3.10 release notes
* Version number -> 3.10
* Update translations
* Update 3.10 release docs
* Update release notes
* Delete symlink
2019-07-15 12:31:09 +01:00
Ryan P Kilby
b26db12813
Update default settings to use lists instead of tuples ( #6799 )
...
* Update default settings from tuples to lists
* Add missing trailing commas
* Use single quotes for consistency
* Update settings lists in docs
2019-07-15 11:54:46 +01:00
Luke Plant
f0dbf0a264
Update docs to use lists instead of tuples ( #6797 )
2019-07-12 18:15:36 -07:00
Aarni Koskela
5c922fb39d
JSONEncoder: ensure empty listlikes remain lists, not dicts ( #6794 )
2019-07-09 11:41:05 +01:00
Carlton Gibson
7915485c0d
Update docs for OpenAPI. ( #6668 )
...
* Update schema docs for OpenAPI
* Begin v3.10 Release Announcement.
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
2019-07-08 13:09:05 +01:00
Tom Quinonero
7762aaa90f
Docs sidebar improvements ( #5638 ) ( #6589 )
...
* add sans-serif fallback for Verdana in docs sidebar
Co-Authored-By: Joachim Jablon <ewjoachim@gmail.com>
* improve display for docs sidebar (#5638 )
Co-Authored-By: Joachim Jablon <ewjoachim@gmail.com>
2019-07-08 13:05:13 +01:00
Tom Christie
1619d282f7
Update rollbar sponsor URL ( #6791 )
2019-07-08 12:27:21 +01:00
Tom Christie
cc88c8a6f3
Update serializers.md
2019-07-08 11:12:30 +01:00
Ryan P Kilby
bd6a1b3b6c
Fix dotted-source field checking on serializer write ( #6786 )
...
* Add tests for raise_errors_on_nested_writes
* Fix dotted-source field checking on serializer write
The code was previously checking the validated data for the field's
attribute name, however, the data contain the first source attr.
2019-07-08 11:10:18 +01:00
linchiwei123
372f4fde20
Update pagination.md ( #6787 )
...
it seems like that
2019-07-05 22:30:01 -07:00
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