- 25 Sep, 2017 17 commits
-
-
John Eskew committed
-
The documentation generator calls view.get_serializer() in order to inspect it for documentation generation. However, if get_serializer() throws an APIException (e.g. PermissionDenied), it doesn't get caught at the call site, but instead propagates up and aborts the entire view. With the try/except in this commit, the documentation generator instead gratiously ignores that particular view and moves on to the next one instead. Practical concequences of this commit is that the docs no longer break if any view's get_serializer(..) throws an APIException.
Sigve Sebastian Farstad committed -
Allow setting custom authentication and permissions on docs view.
Carlton Gibson committed -
Carlton Gibson committed
-
Katharyn Garcia committed
-
* Changes to the paginator defaults and settings Require a default paginator be specified when using the page size setting. https://github.com/encode/django-rest-framework/issues/5168 * DRF-5168 import warnings missed this in last commit * Add a system checks file Add a check for pagination settings for the 3.7 upgrade cycle. * more compatible import approach * missing bactic * revised language and approach to import the system check Adds a rest framework app config. * Adjust doc wording
Matt Davis committed -
Fixed 2 missing spaces in Custom Pagination snippet
Paolo Melchiorre committed -
Kris Dorosz committed
-
…in case you’re reusing the same in-memory user whilst updating it in the DB. Closes #5016, closes #5066, closes #4102
Carlton Gibson committed -
Closes #4749. This is the matching commit to the fix for `datetime` in #4256
Carlton Gibson committed -
Ryan P Kilby committed
-
Ryan P Kilby committed
-
Ryan P Kilby committed
-
Ryan P Kilby committed
-
STRICT_JSON controls the renderer & parser behavior on whether or not to accept non-standard float values (NaN, Infinity).
Ryan P Kilby committed -
Ryan P Kilby committed
-
Ryan P Kilby committed
-
- 20 Sep, 2017 6 commits
-
-
Ryan P Kilby committed
-
Carlton Gibson committed
-
* Add failing TZ tests for DateTimeField - tests "current" timezone activation - tests output for non-UTC timezones * Update DateTimeField TZ aware/naive test output * Fix DateTimeField TZ handling * Add Release Note for BC change
Carlton Gibson committed -
Xavier Ordoquy committed
-
## Description The `choices` field for the `ChoiceField` class should be able to be edited after `ChoiceField.__init__` is called. ``` field = ChoiceField(choices=[1,2]) field.choices = [1] # Should no longer allow `2` as a choice ``` Currently, you must update `choices`, `grouped_choices`, and `choice_strings_to_values` to achieve this. This P/R keeps `grouped_choices` and `choice_strings_to_values` in sync whenever the `choices` are edited.
Jeremy Nauta committed -
* Add tests for schema exclusions * Move exclusion check to should_include_endpoint * Update docs * Switch to using `schema = None` * Test PendingDeprecationWarnings * Add note to release notes. * s/deprecated/pending deprecation/ * Add PR link to release notes * Correct typo in test class name * Test 'exclude_from_schema' deprecation warning message (#1) * Correct deprecation warning message
Carlton Gibson committed
-
- 14 Sep, 2017 3 commits
-
-
* Test case for #5240 * Remove unnecessary strip() from get_description Closes #5240 * Adjust test case
Carlton Gibson committed -
* Initial Refactor Step * Add descriptor class * call from generator * proxy back to generator for implementation. * Move `get_link` to descriptor * Move `get_description` to descriptor * Remove need for generator in get_description * Move get_path_fields to descriptor * Move `get_serializer_fields` to descriptor * Move `get_pagination_fields` to descriptor * Move `get_filter_fields` to descriptor * Move `get_encoding` to descriptor. * Pass just `url` from SchemaGenerator to descriptor * Make `view` a property Encapsulates check for a view instance. * Adjust API Reference docs * Add `ManualSchema` class * Refactor to `ViewInspector` plus `AutoSchema` The interface then is **just** `get_link()` * Add `manual_fields` kwarg to AutoSchema * Add schema decorator for FBVs * Adjust comments * Docs: Provide full params in example Ref feedback https://github.com/encode/django-rest-framework/pull/5354/files/b52e372f8f936204753b17fe7c9bfb517b93a045#r137254795 * Add docstring for ViewInstpector.__get__ descriptor method. Ref https://github.com/encode/django-rest-framework/pull/5354#discussion_r137265022 * Make `schemas` a package. * Split generators, inspectors, views. * Adjust imports * Rename to EndpointEnumerator * Adjust ManualSchema to take `fields` … and `description`. Allows `url` and `action` to remain dynamic * Add package/module docstrings
Carlton Gibson committed -
Tom Christie committed
-
- 12 Sep, 2017 2 commits
-
-
* Fix authtoken managment command username param
Sergei Azarkin committed -
Clarify in docs that REMOTE_ADDR is part of the WSGI environ, not an HTTP header.
Jozef committed
-
- 11 Sep, 2017 2 commits
-
-
Add value repr to the assertion output in FieldValues tests
Carlton Gibson committed -
Ryan P Kilby committed
-
- 08 Sep, 2017 2 commits
-
-
* Update get_object() example in permissions.md I'm a bit confused about the example that's provided in the 'Object level permissions' section. Other examples (e.g. Tutorial 3 - Class Based Views) provided a pk to get_object(). It doesn't seem like this example has any way of identifying a specific object. Just in case I'm correct, I've prepared this pull request. But if I'm wrong, would it be possible for you to explain the example I modified? Many Thanks... * Adjust patch
Sanjuro Jogdeo committed -
* Make status_code documentation more readable. * Update status-codes.md
ersel-ionova committed
-
- 07 Sep, 2017 2 commits
-
-
Fixed the MultipleFieldLookupMixin example to properly check for object level permission
Carlton Gibson committed -
Irvan committed
-
- 04 Sep, 2017 6 commits
-
-
Fix ModelSerializer custom named fields with source on model
Carlton Gibson committed -
jhg14 committed
-
jhg14 committed
-
Fix test crudely Remove comment
jhg14 committed -
* Updated supported values for the NullBooleanField. * Added check for unhashable types in NullBooleanField.
Igor Tokarev committed -
Sometimes, probably in the upgrade from Django 1.9 to 1.10, a post with empty content is forbidden by javascript, with the message "Please fill in this field". Filling the form with '{}' allows an application/json request to be submitted. The API call itself works perfectly well with a post with empty content: the interface shouldn't make assumptions about it.Daniele Varrazzo committed
-