D-PLACE / dplace-legacy

D-PLACE: Database of Places, Language, Culture and Environment (OLD)
https://d-place.org/
MIT License
21 stars 4 forks source link

Update djangorestframework to 3.7.7 #577

Closed pyup-bot closed 6 years ago

pyup-bot commented 6 years ago

There's a new version of djangorestframework available. You are currently using 3.6.4. I have updated it to 3.7.7

These links might come in handy: PyPI | Changelog | Homepage

Changelog

3.7.7

Date: [21st December 2017][3.7.7-milestone]

  • Fix typo to include *.mo locale files to packaging. [5697][gh5697], [5695][gh5695]

3.7.6

Date: [21st December 2017][3.7.6-milestone]

  • Add missing *.ico icon files to packaging.

3.7.5

Date: [21st December 2017][3.7.5-milestone]

  • Add missing *.woff2 font files to packaging. [5692][gh5692]
  • Add missing *.mo locale files to packaging. [5695][gh5695], [5696][gh5696]

3.7.4

Date: [20th December 2017][3.7.4-milestone]

  • Schema: Extract method for manual_fields processing [5633][gh5633]

    Allows for easier customisation of manual_fields processing, for example to provide per-method manual fields. AutoSchema adds get_manual_fields, as the intended override point, and a utility method update_fields, to handle by-name field replacement from a list, which, in general, you are not expected to override.

    Note: AutoSchema.__init__ now ensures manual_fields is a list. Previously may have been stored internally as None.

  • Remove ulrparse compatability shim; use six instead [5579][gh5579]
  • Drop compat wrapper for TimeDelta.total_seconds() [5577][gh5577]
  • Clean up all whitespace throughout project [5578][gh5578]
  • Compat cleanup [5581][gh5581]
  • Add pygments CSS block in browsable API views [5584][gh5584] [5587][gh5587]
  • Remove set_rollback() from compat [5591][gh5591]
  • Fix request body/POST access [5590][gh5590]
  • Rename test to reference correct issue [5610][gh5610]
  • Documentation Fixes [5611][gh5611] [5612][gh5612]
  • Remove references to unsupported Django versions in docs and code [5602][gh5602]
  • Test Serializer exclude for declared fields [5599][gh5599]
  • Fixed schema generation for filter backends [5613][gh5613]
  • Minor cleanup for ModelSerializer tests [5598][gh5598]
  • Reimplement request attribute access w/ __getattr__ [5617][gh5617]
  • Fixed SchemaJSRenderer renders invalid Javascript [5607][gh5607]
  • Make Django 2.0 support official/explicit [5619][gh5619]
  • Perform type check on passed request argument [5618][gh5618]
  • Fix AttributeError hiding on request authenticators [5600][gh5600]
  • Update test requirements [5626][gh5626]
  • Docs: Serializer._declared_fields enable modifying fields on a serializer [5629][gh5629]
  • Fix packaging [5624][gh5624]
  • Fix readme rendering for PyPI, add readme build to CI [5625][gh5625]
  • Update tutorial [5622][gh5622]
  • Non-required fields with allow_null=True should not imply a default value [5639][gh5639]
  • Docs: Add allow_null serialization output note [5641][gh5641]
  • Update to use the Django 2.0 release in tox.ini [5645][gh5645]
  • Fix Serializer.data for Browsable API rendering when provided invalid data [5646][gh5646]
  • Docs: Note AutoSchema limitations on bare APIView [5649][gh5649]
  • Add .basename and .reverse_action() to ViewSet [5648][gh5648]
  • Docs: Fix typos in serializers documentation [5652][gh5652]
  • Fix override_settings compat [5668][gh5668]
  • Add DEFAULT_SCHEMA_CLASS setting [5658][gh5658]
  • Add docs note re generated BooleanField being required=False [5665][gh5665]
  • Add 'dist' build [5656][gh5656]
  • Fix typo in docstring [5678][gh5678]
  • Docs: Add UNAUTHENTICATED_USER = None note [5679][gh5679]
  • Update OPTIONS example from “Documenting Your API” [5680][gh5680]
  • Docs: Add note on object permissions for FBVs [5681][gh5681]
  • Docs: Add example to to_representation docs [5682][gh5682]
  • Add link to Classy DRF in docs [5683][gh5683]
  • Document ViewSet.action [5685][gh5685]
  • Fix schema docs typo [5687][gh5687]
  • Fix URL pattern parsing in schema generation [5689][gh5689]
  • Add example using source=‘*’ to custom field docs. [5688][gh5688]
  • Fix format_suffix_patterns behavior with Django 2 path() routes [5691][gh5691]

3.7.3

Date: [6th November 2017][3.7.3-milestone]

  • Fix AppRegistryNotReady error from contrib.auth view imports [5567][gh5567]

3.7.2

Date: [6th November 2017][3.7.2-milestone]

  • Fixed Django 2.1 compatibility due to removal of django.contrib.auth.login()/logout() views. [5510][gh5510]
  • Add missing import for TextLexer. [5512][gh5512]
  • Adding examples and documentation for caching [5514][gh5514]
  • Include date and date-time format for schema generation [5511][gh5511]
  • Use triple backticks for markdown code blocks [5513][gh5513]
  • Interactive docs - make bottom sidebar items sticky [5516][gh5516]
  • Clarify pagination system check [5524][gh5524]
  • Stop JSONBoundField mangling invalid JSON [5527][gh5527]
  • Have JSONField render as textarea in Browsable API [5530][gh5530]
  • Schema: Exclude OPTIONS/HEAD for ViewSet actions [5532][gh5532]
  • Fix ordering for dotted sources [5533][gh5533]
  • Fix: Fields with allow_null=True should imply a default serialization value [5518][gh5518]
  • Ensure Location header is strictly a 'str', not subclass. [5544][gh5544]
  • Add import to example in api-guide/parsers [5547][gh5547]
  • Catch OverflowError for "out of range" datetimes [5546][gh5546]
  • Add djangorestframework-rapidjson to third party packages [5549][gh5549]
  • Increase test coverage for drf_create_token command [5550][gh5550]
  • Add trove classifier for Python 3.6 support. [5555][gh5555]
  • Add pip cache support to the Travis CI configuration [5556][gh5556]
  • Rename [wheel] section to [bdist_wheel] as the former is legacy [5557][gh5557]
  • Fix invalid escape sequence deprecation warnings [5560][gh5560]
  • Add interactive docs error template [5548][gh5548]
  • Add rounding parameter to DecimalField [5562][gh5562]
  • Fix all BytesWarning caught during tests [5561][gh5561]
  • Use dict and set literals instead of calls to dict() and set() [5559][gh5559]
  • Change ImageField validation pattern, use validators from DjangoImageField [5539][gh5539]
  • Fix processing unicode symbols in query_string by Python 2 [5552][gh5552]

3.7.1

Date: [16th October 2017][3.7.1-milestone]

  • Fix Interactive documentation always uses false for boolean fields in requests [5492][gh5492]
  • Improve compatibility with Django 2.0 alpha. [5500][gh5500] [5503][gh5503]
  • Improved handling of schema naming collisions [5486][gh5486]
  • Added additional docs and tests around providing a default value for dotted source fields [5489][gh5489]

3.7.0

Date: [6th October 2017][3.7.0-milestone]

  • Fix DjangoModelPermissions to ensure user authentication before calling the view's get_queryset() method. As a side effect, this changes the order of the HTTP method permissions and authentication checks, and 405 responses will only be returned when authenticated. If you want to replicate the old behavior, see the PR for details. [5376][gh5376]

  • Deprecated exclude_from_schema on APIView and api_view decorator. Set schema = None or schema(None) as appropriate. [5422][gh5422]

  • Timezone-aware DateTimeFields now respect active or default timezone during serialization, instead of always using UTC. [5435][gh5435]

    Resolves inconsistency whereby instances were serialised with supplied datetime for create but UTC for retrieve. [3732][gh3732]

    Possible backwards compatibility break if you were relying on datetime strings being UTC. Have client interpret datetimes or [set default or active timezone (docs)][djangodocs-set-timezone] to UTC if needed.

  • Removed DjangoFilterBackend inline with deprecation policy. Use django_filters.rest_framework.FilterSet and/or django_filters.rest_framework.DjangoFilterBackend instead. [5273][gh5273]

  • Don't strip microseconds from time when encoding. Makes consistent with datetime. BC Change: Previously only milliseconds were encoded. [5440][gh5440]

  • Added STRICT_JSON setting (default True) to raise exception for the extended float values (nan, inf, -inf) accepted by Python's json module. BC Change: Previously these values would converted to corresponding strings. Set STRICT_JSON to False to restore the previous behaviour. [5265][gh5265]

  • Add support for page_size parameter in CursorPaginator class [5250][gh5250]

  • Make DEFAULT_PAGINATION_CLASS None by default. BC Change: If your were just setting PAGE_SIZE to enable pagination you will need to add DEFAULT_PAGINATION_CLASS. The previous default was rest_framework.pagination.PageNumberPagination. There is a system check warning to catch this case. You may silence that if you are setting pagination class on a per-view basis. [5170][gh5170]

  • Catch APIException from get_serializer_fields in schema generation. [5443][gh5443]

  • Allow custom authentication and permission classes when using include_docs_urls [5448][gh5448]

  • Defer translated string evaluation on validators. [5452][gh5452]

  • Added default value for 'detail' param into 'ValidationError' exception [5342][gh5342]

  • Adjust schema get_filter_fields rules to match framework [5454][gh5454]

  • Updated test matrix to add Django 2.0 and drop Django 1.8 & 1.9 BC Change: This removes Django 1.8 and Django 1.9 from Django REST Framework supported versions. [5457][gh5457]

  • Fixed a deprecation warning in serializers.ModelField [5058][gh5058]

  • Added a more explicit error message when get_queryset returned None [5348][gh5348]

  • Fix docs for Response data description [5361][gh5361]

  • Fix pycache/.pyc excludes when packaging [5373][gh5373]

  • Fix default value handling for dotted sources [5375][gh5375]

  • Ensure content_type is set when passing empty body to RequestFactory [5351][gh5351]

  • Fix ErrorDetail Documentation [5380][gh5380]

  • Allow optional content in the generic content form [5372][gh5372]

  • Updated supported values for the NullBooleanField [5387][gh5387]

  • Fix ModelSerializer custom named fields with source on model [5388][gh5388]

  • Fixed the MultipleFieldLookupMixin documentation example to properly check for object level permission [5398][gh5398]

  • Update get_object() example in permissions.md [5401][gh5401]

  • Fix authtoken management command [5415][gh5415]

  • Fix schema generation markdown [5421][gh5421]

  • Allow ChoiceField.choices to be set dynamically [5426][gh5426]

  • Add the project layout to the quickstart [5434][gh5434]

  • Reuse 'apply_markdown' function in 'render_markdown' templatetag [5469][gh5469]

  • Added links to drf-openapi package in docs [5470][gh5470]

  • Added docstrings code highlighting with pygments [5462][gh5462]

  • Fixed documentation rendering for views named data [5472][gh5472]

  • Docs: Clarified 'to_internal_value()' validation behavior [5466][gh5466]

  • Fix missing six.text_type() call on APIException.str [5476][gh5476]

  • Document documentation.py [5478][gh5478]

  • Fix naming collisions in Schema Generation [5464][gh5464]

  • Call Django's authenticate function with the request object [5295][gh5295]

  • Update coreapi JS to 0.1.1 [5479][gh5479]

  • Have is_list_view recognise RetrieveModel… views [5480][gh5480]

  • Remove Django 1.8 & 1.9 compatibility code [5481][gh5481]

  • Remove deprecated schema code from DefaultRouter [5482][gh5482]

  • Refactor schema generation to allow per-view customisation. BC Change: SchemaGenerator.get_serializer_fields has been refactored as AutoSchema.get_serializer_fields and drops the view argument [5354][gh5354]

3.6.x series

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖