Commit Graph

7853 Commits

Author SHA1 Message Date
Carlton Gibson
1903c3f41b
Merge 9590e11101 into c9d2bbcead 2018-10-03 12:03:35 +00:00
Tom Christie
9590e11101 Drop unused 'OpenAPISchemaGenerator' 2018-10-03 13:03:26 +01:00
Tom Christie
4ec0fd6d2d Add OpenAPIRenderer 2018-10-03 13:00:26 +01:00
Tom Christie
0e73cdc6d8 Merge branch 'master' into 39/update-schemas 2018-10-03 12:07:53 +01:00
Tom Christie
46281a9891 Import ordering 2018-10-03 11:42:57 +01:00
Tom Christie
f35a867ee3 Import spec-compliant json 2018-10-03 11:29:40 +01:00
Tom Christie
4b274130c7 Linting 2018-10-03 10:50:42 +01:00
Tom Christie
c9d2bbcead
Update codecov.yml 2018-10-02 16:57:49 +01:00
Jerome Leclanche
0eb2dc1137 Prohibit null characters in CharField by default (#6073)
* Implement an allow_null_bytes argument to CharField (default True)
* Switch to using native ProhibitNullCharactersValidator instead
2018-10-02 16:54:15 +02:00
Ryan P Kilby
66183389f6 Deprecate DjangoObjectPermissionsFilter (#6075) 2018-10-02 16:34:25 +02:00
Ryan P Kilby
903204cd79 Fix action support for ViewSet suffixes (#6081)
* Add suffix support for actions

Removes the newly introduced `action.name` in favor of leveraging the
View's `.get_view_name()` method, which supports both name and suffix.

* Fix view description func docstrings

* Test action decorator name & suffix kwargs

* Adjust 'extra action' docs
2018-10-02 16:22:21 +02:00
Tom Christie
20a7734dce Bring docs license text up to date 2018-10-02 11:12:31 +01:00
Lewis M. Kabui
d0995fac70 Remove dot character from "pagination_class" (#6137) 2018-10-02 08:49:31 +02:00
Matheus Cansian
9ecce21044 Update JWT docs. (#6138)
* Remove mentions to djangorestframework-jwt in docs
* Remove links for blimp and djangorestframework-jwt
2018-10-02 08:43:45 +02:00
Jon Dufresne
878f9d2783 Prefer https:// for URLs when available throughout project (#6208) 2018-10-02 08:28:58 +02:00
Tom Christie
d1514d1f9c Update codecov.yml (#6224) 2018-10-01 18:12:03 +02:00
Anish Shrestha
2e8ccfd883 Fix typo in docs (#6212) 2018-09-25 12:11:13 -07:00
Anish Shrestha
d976ac56b0 Fix spelling error (#6198) 2018-09-21 08:55:32 +02:00
Melissa Lewis
b090ae9d30 Fix docs typos (#6195) 2018-09-18 15:32:32 -07:00
Ryan P Kilby
5174a26ec9 Simplify job matrix on Travis (#6174)
* Move to explicit Travis matrix

* Cleanup Python 3.6 matrix
2018-09-17 10:41:55 +02:00
Jon Dufresne
ed6340ee76 Remove unnecessary use of compat shim six.binary_type (#6189)
The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type. Makes the code more
forward compatible with Python 3.
2018-09-17 10:39:59 +02:00
Ryan P Kilby
fc6cbb5b26 Allow nullable BooleanField in Django 2.1 (#6183)
* Add tests for BooleanField when nullable

* Allow nullable BooleanField in Django 2.1

* Drop 'BooleanField.allow_null' check

* Remove conflicting false/null values
2018-09-13 17:25:03 +01:00
Tom Christie
5f1f2b1003 Higher res. load impact logo 2018-09-11 12:55:53 +01:00
Tom Christie
4e093b0e25 Add Load Impact to README 2018-09-11 11:53:45 +01:00
Tom Christie
9140629c45 Fix Load Impact URL 2018-09-11 11:41:49 +01:00
Tom Christie
4033f0c6b3
Add Load Impact to premium sponsors (#6176) 2018-09-11 11:40:47 +01:00
Ryan P Kilby
7f77340b33
Add Python 3.7 support (#6141) 2018-09-10 21:44:23 -07:00
Jerome Leclanche
612a7b989f Fix Python 3.8 compatibility (#6154) 2018-09-10 21:12:32 -07:00
Jon Dufresne
4d57d46bf8 Prefer io.BytesIO over six; available on all supported Pythons (#6168)
On all supported Pythons, the io.BytesIO is always a stream
implementation using an in-memory bytes buffer.

Makes code slightly more forward compatible by reducing use of the six
module and promotes more forward compatible practices in the docs.
2018-09-09 11:53:41 +01:00
Xavier Ordoquy
1d5771d980
Merge pull request #6165 from dsanders11/patch-1
Fix validate_my_field signature
2018-09-07 05:44:24 +00:00
David Sanders
69f605f30e
Fix validate_my_field signature 2018-09-06 18:16:06 -07:00
Tom Christie
a247fe8eb0 Switch generate_schema to default to OpenAPI 2018-09-06 14:21:19 +01:00
Timothy Allen
bc573d8096 Add drf-renderer-xlsx package. (#6147)
* Add drf-renderer-xlsx package.

* Gah, tabs creeped in; never leave your default editor environment. :)
2018-09-06 11:01:57 +01:00
oliver
bcc565f387 Clean up unnecessary if statement (#6163) 2018-09-06 07:25:20 +01:00
Michael
2c992f09da Mention Django 2.1 compat where missing (#6158) 2018-09-04 11:33:42 -07:00
Jon Dufresne
468cdd16ed Remove unnecessary models.py file (#6142)
Since Django 1.7, an empty models.py file is not required.

See
https://docs.djangoproject.com/en/dev/releases/1.7/#app-loading-refactor

> It is possible to omit models.py entirely if an application doesn’t
> have any models.
2018-08-28 09:51:28 +02:00
Ryan P Kilby
c4b068cfd3
Fix dist build (#6139)
* Use tox-venv to reduce warnings in output

* Remove .egg-info/ to allow wheel installation

tox now invokes pip as a python module instead of through its entry
point. "python -m" adds the current directory to the PYTHONPATH, picking
up the .egg-info/ metadata directory, tricking pip into thinking that
the package is already installed (and thus not installing the wheel).
Deleting the metadata directory fixes this.
2018-08-24 15:57:45 -07:00
Craig Johnson
90ed2c1ef7 Small grammar correction in quickstart. (#6121)
Just felt the sentence could use some improving.
2018-08-13 10:32:17 +01:00
Carlton Gibson
416ca3fcca Note dependency on uritemplate. 2018-08-09 17:56:46 +02:00
Carlton Gibson
4c173193d6 Add get_path_parameters() for operations. 2018-08-09 15:13:06 +02:00
Carlton Gibson
05267221c2 Remove redundant test. 2018-08-09 14:12:45 +02:00
Carlton Gibson
7241de66ae Rename test_schemas.py to test_coreapi.py
Which is largely what it is now.
2018-08-09 14:09:42 +02:00
Carlton Gibson
47a4526c6d Move ViewInspector descriptor tests to own module. 2018-08-09 14:05:20 +02:00
Carlton Gibson
eefc08a72f Regroup code for CoreAPI FK generation tests. 2018-08-09 13:53:58 +02:00
Carlton Gibson
2eab61db90 Move EndpointEnumerator tests to separate module. 2018-08-09 13:43:15 +02:00
Carlton Gibson
c7b71ff848 Re-group code for CoreAPI naming collision tests into TestCase 2018-08-09 12:06:57 +02:00
Carlton Gibson
284359fb9c Move test views into separate module. 2018-08-09 11:53:48 +02:00
Carlton Gibson
fe53fc3211 Remove get_link() stub from ViewInspector base class.
Open API has get_operation()
2018-08-09 11:20:31 +02:00
Carlton Gibson
2e5eb81a25 Extract common logic to BaseSchemaGenerator 2018-08-09 11:13:03 +02:00
Carlton Gibson
7428f58ee4 Add DEFAULT_SCHEMA_GENERATOR_CLASS setting 2018-08-09 10:39:28 +02:00