head 1.38; access; symbols pkgsrc-2023Q4:1.37.0.2 pkgsrc-2023Q4-base:1.37 pkgsrc-2023Q3:1.36.0.2 pkgsrc-2023Q3-base:1.36 pkgsrc-2023Q2:1.34.0.12 pkgsrc-2023Q2-base:1.34 pkgsrc-2023Q1:1.34.0.10 pkgsrc-2023Q1-base:1.34 pkgsrc-2022Q4:1.34.0.8 pkgsrc-2022Q4-base:1.34 pkgsrc-2022Q3:1.34.0.6 pkgsrc-2022Q3-base:1.34 pkgsrc-2022Q2:1.34.0.4 pkgsrc-2022Q2-base:1.34 pkgsrc-2022Q1:1.34.0.2 pkgsrc-2022Q1-base:1.34 pkgsrc-2021Q4:1.32.0.6 pkgsrc-2021Q4-base:1.32 pkgsrc-2021Q3:1.32.0.4 pkgsrc-2021Q3-base:1.32 pkgsrc-2021Q2:1.32.0.2 pkgsrc-2021Q2-base:1.32 pkgsrc-2021Q1:1.31.0.2 pkgsrc-2021Q1-base:1.31 pkgsrc-2020Q4:1.30.0.2 pkgsrc-2020Q4-base:1.30 pkgsrc-2020Q3:1.29.0.2 pkgsrc-2020Q3-base:1.29 pkgsrc-2020Q2:1.28.0.6 pkgsrc-2020Q2-base:1.28 pkgsrc-2020Q1:1.28.0.2 pkgsrc-2020Q1-base:1.28 pkgsrc-2019Q4:1.28.0.4 pkgsrc-2019Q4-base:1.28 pkgsrc-2019Q3:1.26.0.4 pkgsrc-2019Q3-base:1.26 pkgsrc-2019Q2:1.26.0.2 pkgsrc-2019Q2-base:1.26 pkgsrc-2019Q1:1.24.0.2 pkgsrc-2019Q1-base:1.24 pkgsrc-2018Q4:1.22.0.2 pkgsrc-2018Q4-base:1.22 pkgsrc-2018Q3:1.21.0.4 pkgsrc-2018Q3-base:1.21 pkgsrc-2018Q2:1.21.0.2 pkgsrc-2018Q2-base:1.21 pkgsrc-2018Q1:1.19.0.4 pkgsrc-2018Q1-base:1.19 pkgsrc-2017Q4:1.19.0.2 pkgsrc-2017Q4-base:1.19 pkgsrc-2017Q3:1.14.0.4 pkgsrc-2017Q3-base:1.14 pkgsrc-2017Q2:1.13.0.2 pkgsrc-2017Q2-base:1.13 pkgsrc-2017Q1:1.12.0.2 pkgsrc-2017Q1-base:1.12 pkgsrc-2016Q4:1.9.0.4 pkgsrc-2016Q4-base:1.9 pkgsrc-2016Q3:1.9.0.2 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.8.0.2 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.7.0.4 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.2 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.6.0.6 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.4 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.2 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.5.0.6 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.4 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.2 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.4.0.2 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.3.0.10 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.8 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.6 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.4 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.2 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.2.0.4 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.1.1.0.6 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.4 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.2 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.38 date 2024.03.22.18.45.23; author adam; state Exp; branches; next 1.37; commitid sIFmy9kcjuJtEb3F; 1.37 date 2023.09.28.22.26.33; author joerg; state Exp; branches; next 1.36; commitid vtCUnaiQxn5jxAGE; 1.36 date 2023.08.05.06.19.18; author adam; state Exp; branches; next 1.35; commitid mjYHiFvyUseWUyzE; 1.35 date 2023.07.13.10.03.30; author wiz; state Exp; branches; next 1.34; commitid FVBRhonHqK8MTCwE; 1.34 date 2022.01.24.14.32.59; author adam; state Exp; branches; next 1.33; commitid xFPhvMYn8LtlATpD; 1.33 date 2022.01.04.20.55.24; author wiz; state Exp; branches; next 1.32; commitid CYyhdK9qtoffkmnD; 1.32 date 2021.04.03.07.33.30; author adam; state Exp; branches; next 1.31; commitid udIeMAQtEZmcMONC; 1.31 date 2021.01.20.10.57.01; author adam; state Exp; branches; next 1.30; commitid C7uRjQmXLv4HfsEC; 1.30 date 2020.10.02.19.27.47; author adam; state Exp; branches; next 1.29; commitid tTkv7u7EpIO1CmqC; 1.29 date 2020.08.20.11.37.06; author joerg; state Exp; branches; next 1.28; commitid AsIGPa6ECIYaoNkC; 1.28 date 2019.12.15.21.38.40; author adam; state Exp; branches; next 1.27; commitid CnNlI1lI0qGQIQOB; 1.27 date 2019.11.14.17.27.15; author adam; state Exp; branches; next 1.26; commitid rVCWlOIJtQapkQKB; 1.26 date 2019.05.13.15.52.13; author adam; state Exp; branches; next 1.25; commitid hjb8ljBx8UFCK3nB; 1.25 date 2019.04.30.07.57.19; author adam; state Exp; branches; next 1.24; commitid SXfZLOn3QvCyxllB; 1.24 date 2019.03.04.08.29.25; author adam; state Exp; branches; next 1.23; commitid iyHybPlodomWx1eB; 1.23 date 2019.01.16.19.24.12; author adam; state Exp; branches; next 1.22; commitid 9PnbezWI7drtG28B; 1.22 date 2018.10.23.07.57.05; author adam; state Exp; branches; next 1.21; commitid CDV6nk5pN0dWB3XA; 1.21 date 2018.04.07.19.55.22; author adam; state Exp; branches; next 1.20; commitid qAJH78WVmtH4ZxxA; 1.20 date 2018.04.05.08.14.18; author adam; state Exp; branches; next 1.19; commitid nlrlctJpBPq3aexA; 1.19 date 2017.12.21.13.42.43; author adam; state Exp; branches; next 1.18; commitid hOnZjPXAQgUqmLjA; 1.18 date 2017.12.21.07.33.44; author adam; state Exp; branches; next 1.17; commitid 5V0VNeZYk1RUjJjA; 1.17 date 2017.11.08.12.29.22; author adam; state Exp; branches; next 1.16; commitid A0nl9uhhckrUkeeA; 1.16 date 2017.10.17.06.30.30; author adam; state Exp; branches; next 1.15; commitid yQjbH4jRsEnK3nbA; 1.15 date 2017.10.08.09.43.29; author adam; state Exp; branches; next 1.14; commitid t9TU0a0uSLlYpeaA; 1.14 date 2017.08.25.06.03.10; author adam; state Exp; branches; next 1.13; commitid 9kZBruWvTF03Cy4A; 1.13 date 2017.05.15.09.33.21; author adam; state Exp; branches; next 1.12; commitid KtPx05s0W2lu3tRz; 1.12 date 2017.03.12.18.52.48; author adam; state Exp; branches; next 1.11; commitid OtOXdU8RBydXciJz; 1.11 date 2017.02.13.21.52.17; author adam; state Exp; branches; next 1.10; commitid sO9vi2dK3vSl4QFz; 1.10 date 2017.01.01.14.44.04; author wiz; state Exp; branches; next 1.9; commitid TmfhF2MIYbgU4hAz; 1.9 date 2016.07.09.13.04.14; author wiz; state Exp; branches; next 1.8; commitid k9A2yv7vTRunbEdz; 1.8 date 2016.06.08.17.43.45; author wiz; state Exp; branches; next 1.7; commitid z4yEulWexjFaJG9z; 1.7 date 2015.12.05.21.26.05; author adam; state Exp; branches; next 1.6; commitid bgA0CynThkP3WNLy; 1.6 date 2014.12.31.13.57.32; author wiz; state Exp; branches; next 1.5; commitid ybQxkgXABHSTlc4y; 1.5 date 2014.05.09.07.37.25; author wiz; state Exp; branches; next 1.4; commitid wfzXpL2biguCPPzx; 1.4 date 2014.01.25.10.30.28; author wiz; state Exp; branches; next 1.3; commitid VOWgk3vYhVXj8umx; 1.3 date 2012.10.28.06.31.00; author asau; state Exp; branches; next 1.2; 1.2 date 2012.04.08.19.09.16; author wiz; state Exp; branches; next 1.1; 1.1 date 2011.09.12.08.21.29; author adam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.09.12.08.21.29; author adam; state Exp; branches; next ; desc @@ 1.38 log @py-djangorestframework: updated to 3.15.1 3.15.1 Fix SearchFilter handling of quoted and comma separated strings, when .get_search_terms is being called into by a custom class. See Revert number of 3.15.0 issues which included unintended side-effects. See 3.15.0 Django 5.0 and Python 3.12 support Use POST method instead of GET to perform logout in browsable API [9208] Added jQuery 3.7.1 support & dropped previous version Use str as default path converter Document support for http.HTTPMethod in the @@action decorator added in Python 3.11 Update exceptions.md Partial serializer should not have required fields Propagate 'default' from model field to serializer field. Allow to override child.run_validation call in ListSerializer Align SearchFilter behaviour to django.contrib.admin search Class name added to unknown field error Fix: Pagination response schemas. Fix choices in ChoiceField to support IntEnum Fix SearchFilter rendering search field with invalid value Fix OpenAPI Schema yaml rendering for timedelta Fix NamespaceVersioning ignoring DEFAULT_VERSION on non-None namespaces Added Deprecation Warnings for CoreAPI Removed usage of field.choices that triggered full table load Permit mixed casing of string values for BooleanField validation Fixes BrowsableAPIRenderer for usage with ListSerializer. Change semantic of OR of two permission classes Remove dependency on pytz Make set_value a method within Serializer Fix URLPathVersioning reverse fallback Warn about Decimal type in min_value and max_value arguments of DecimalField Fix mapping for choice values Refactor read function to use context manager for file handling Fix: fallback on CursorPagination ordering if unset on the view Replaced OrderedDict with dict Refactor get_field_info method to include max_digits and decimal_places attributes in SimpleMetadata class Implement __eq__ for validators Ensure CursorPagination respects nulls in the ordering field Use ZoneInfo as primary source of timezone data Add username search field for TokenAdmin Handle Nested Relation in SlugRelatedField when many=False Bump version of jQuery to 3.6.4 & updated ref links Support UniqueConstraint Allow Request, Response, Field, and GenericAPIView to be subscriptable. This allows the classes to be made generic for type checking. Feat: Add some changes to ValidationError to support django style validation errors Fix Respect can_read_model permission in DjangoModelPermissions Add SimplePathRouter Re-prefetch related objects after updating Fix FilePathField required argument Raise ImproperlyConfigured exception if basename is not unique Use PrimaryKeyRelatedField pkfield in openapi replace partition with split in BasicAuthentication Fix BooleanField's allow_null behavior Handle Django's ValidationErrors in ListField Remove a bit of inline CSS. Add CSP nonce where it might be required and is available Use autocomplete widget for user selection in Token admin Make browsable API compatible with strong CSP Avoid inline script execution for injecting CSRF token Mitigate global dependency on inflection Register Django urls Implemented Verbose Name Translation for TokenProxy Properly handle OverflowError in DurationField deserialization Fix OpenAPI operation name plural appropriately Represent SafeString as plain string on schema rendering Fix 8771 - Checking for authentication even if _ignore_model_permissions = True Fix 404 when page query parameter is empty string Fixes instance check in ListSerializer.to_representation FloatField will crash if the input is a number that is too big Add missing DurationField to SimpleMetada label_lookup Add support for Python 3.11 Make request consistently available in pagination classes Possibility to remove trailing zeros on DecimalFields representation Add a method for getting serializer field name (OpenAPI) Add __eq__ method for OperandHolder class Avoid importing django.test package when not testing Preserve exception messages for wrapped Django exceptions Include examples and format to OpenAPI schema of CursorPagination Fix infinite recursion with deepcopy on Request Refactor: Replace try/except with contextlib.suppress() Minor fix to SerializeMethodField docstring Minor refactor: Unnecessary use of list() function Unnecessary list comprehension Use correct class to indicate present deprecation @ text @# $NetBSD: Makefile,v 1.37 2023/09/28 22:26:33 joerg Exp $ DISTNAME= djangorestframework-3.15.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=d/djangorestframework/} MAINTAINER= adam@@NetBSD.org HOMEPAGE= https://www.django-rest-framework.org/ COMMENT= Lightweight REST framework for Django LICENSE= modified-bsd TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel DEPENDS+= ${PYPKGPREFIX}-django>=3:../../www/py-django3 USE_LANGUAGES= # none PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/pyversion.mk" .if ${PYTHON_VERSION} < 309 DEPENDS+= ${PYPKGPREFIX}-backports.zoneinfo-[0-9]*:../../time/py-backports.zoneinfo .endif .include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk" @ 1.37 log @Extract using bsdtar, nbpax is broken @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 2023/08/05 06:19:18 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.14.0 d13 2 a15 3 DEPENDS+= ${PYPKGPREFIX}-pytz>0:../../time/py-pytz EXTRACT_USING= bsdtar d21 6 a26 1 .include "../../lang/python/egg.mk" @ 1.36 log @py-djangorestframework: updated to 3.14.0 Django REST framework 3.14 Django 4.1 support The latest release now fully supports Django 4.1, and drops support for Django 2.2. Our requirements are now: Python 3.6+ Django 4.1, 4.0, 3.2, 3.1, 3.0 raise_exceptions argument for is_valid is now keyword-only. Calling serializer_instance.is_valid(True) is no longer acceptable syntax. If you'd like to use the raise_exceptions argument, you must use it as a keyword argument. ManyRelatedField supports returning the default when the source attribute doesn't exist. Previously, if you used a serializer field with many=True with a dot notated source field that didn't exist, it would raise an AttributeError. Now it will return the default or be skipped depending on the other arguments. Make Open API get_reference public. Returns a reference to the serializer component. This may be useful if you override get_schema(). Change semantic of OR of two permission classes. When OR-ing two permissions, the request has to pass either class's has_permission() and has_object_permission(). Previously, both class's has_permission() was ignored when OR-ing two permissions together. Minor fixes and improvements There are a number of minor fixes and improvements in this release. See the release notes page for a complete listing. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2023/07/13 10:03:30 wiz Exp $ d16 2 @ 1.35 log @*: switch django users to py-django3 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2022/01/24 14:32:59 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.13.1 a4 1 PKGREVISION= 1 @ 1.34 log @py-djangorestframework: updated to 3.13.1 3.13.1 Revert schema naming changes with function based @@api_view. 3.13.0 Django 4.0 compatability. Add max_length and min_length options to ListSerializer. Add get_request_serializer and get_response_serializer hooks to AutoSchema. Fix OpenAPI representation of null-able read only fields. Respect UNICODE_JSON setting in API schema outputs. Fix for RemoteUserAuthentication. Make Field constructors keyword-only. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2022/01/04 20:55:24 wiz Exp $ d5 1 d14 1 a14 1 DEPENDS+= ${PYPKGPREFIX}-django>=2.2:../../www/py-django2 @ 1.33 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2021/04/03 07:33:30 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.12.4 a4 1 PKGREVISION= 1 d9 1 a9 1 HOMEPAGE= https://django-rest-framework.org/ d14 1 @ 1.32 log @py-djangorestframework: updated to 3.12.4 3.12.4 Revert use of deque instead of list for tracking throttling .history. (Due to incompatibility with DjangoRedis cache backend. 3.12.3 Properly handle ATOMIC_REQUESTS when multiple database configurations are used. Bypass COUNT query when LimitOffsetPagination is configured but pagination params are not included on the request. Respect allow_null=True on DecimalField. Allow title cased "Yes"/"No" values with BooleanField. Add PageNumberPagination.get_page_number() method for overriding behavior. Fixed rendering of timedelta values in OpenAPI schemas, when present as default, min, or max fields. Render JSONFields with indentation in browsable API forms. Remove unnecessary database query in admin Token views. Raise validation errors when bools are passed to PrimaryKeyRelatedField fields, instead of casting to ints. Don't include model properties as automatically generated ordering fields with OrderingFilter. Use deque instead of list for tracking throttling .history. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2021/01/20 10:57:01 adam Exp $ d5 1 @ 1.31 log @py-djangorestframework: updated to 3.12.2 3.12.2 Fix issue if rest_framework.authtoken.models is imported, but rest_framework.authtoken is not in INSTALLED_APPS. Ignore subclasses of BrowsableAPIRenderer in OpenAPI schema. Narrower exception catching in serilizer fields, to ensure that any errors in broken get_queryset() methods are not masked. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2020/10/02 19:27:47 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.12.2 d17 1 a17 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 # since 3.10.0 @ 1.30 log @py-djangorestframework: updated to 3.12.1 3.12.1 Add TokenProxy migration. 3.12.0 Add --file option to generateschema command. Support tags for OpenAPI schema generation. See the schema docs. Support customising the operation ID for schema generation. See the schema docs. Support OpenAPI components for schema generation. See the schema docs. The following methods on AutoSchema become public API: get_path_parameters, get_pagination_parameters, get_filter_parameters, get_request_body, get_responses, get_serializer, get_paginator, map_serializer, map_field, map_choice_field, map_field_validators, allows_filters. See the schema docs Add support for Django 3.1's database-agnositic JSONField. SearchFilter now supports nested search on JSONField and HStoreField model fields. SearchFilter now supports searching on annotate() fields. The authtoken model no longer exposes the pk in the admin URL. Add __repr__ for Request instances. UTF-8 decoding with Latin-1 fallback for basic auth credentials. CharField treats surrogate characters as a validation failure. Don't include callables as default values in schemas. Improve ListField schema output to include all available child information. Allow default=False to be included for BooleanField schema outputs. Include "type" information in ChoiceField schema outputs. Include "type": "object" on schema objects. Don't include component in schema output for DELETE requests. Fix schema types for DecimalField. Fix schema generation for ObtainAuthToken view. Support passing context=... to view .get_serializer() methods. Pass custom code to PermissionDenied if permission class has one set. Include "example" in schema pagination output. Default status code of 201 on schema output for POST requests. Use camelCase for operation IDs in schema output. Warn if duplicate operation IDs exist in schema output. Improve handling of decimal type when mapping ChoiceField to a schema output. Disable YAML aliases for OpenAPI schema outputs. Fix action URL names for APIs included under a namespaced URL. Update jQuery version from 3.4 to 3.5. Fix UniqueTogether handling when serializer fields use source=.... HTTP HEAD requests now set self.action correctly on a ViewSet instance. Return a valid OpenAPI schema for the case where no API schema paths exist. Include tests in package distribution. Allow type checkers to support annotations like ModelSerializer[Author]. Don't include invalid charset=None portion in the request Content-Type header when using APIClient. Fix \Z/\z tokens in OpenAPI regexs. Fix PrimaryKeyRelatedField and HyperlinkedRelatedField when source field is actually a property. Token.generate_key is now a class method. @@action warns if method is wrapped in a decorator that does not preserve information using @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2020/08/20 11:37:06 joerg Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.12.1 @ 1.29 log @Update django restframework to 3.11.1: - Make get_extra_action less permissive @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2019/12/15 21:38:40 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.11.1 d9 1 a9 1 HOMEPAGE= http://django-rest-framework.org/ d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-django>=1.11:../../www/py-django @ 1.28 log @py-djangorestframework: updated to 3.11.0 Django REST framework 3.11 The 3.11 release adds support for Django 3.0. Our supported Python versions are now: 3.5, 3.6, 3.7, and 3.8. Our supported Django versions are now: 1.11, 2.0, 2.1, 2.2, and 3.0. This release will be the last to support Python 3.5 or Django 1.11. * OpenAPI Schema Generation Improvements * Validator / Default Context @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2019/11/14 17:27:15 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.11.0 @ 1.27 log @py-djangorestframework: updated to 3.10.3 3.10.3 Include API version in OpenAPI schema generation, defaulting to empty string. Add pagination properties to OpenAPI response schemas. Add missing "description" property to OpenAPI response schemas. Only include "required" for non-empty cases in OpenAPI schemas. Fix response schemas for "DELETE" case in OpenAPI schemas. Use an array type for list view response schemas. Use consistent lowerInitialCamelCase style in OpenAPI operation IDs. Fix minLength/maxLength/minItems/maxItems properties in OpenAPI schemas. Only call FileField.url once in serialization, for improved performance. Fix an edge case where throttling calcualtions could error after a configuration change. 3.10.2 Various OpenAPI schema fixes. Ability to specify urlconf in include_docs_urls. 3.10.1 Don't include autocomplete fields on TokenAuth admin, since it forces constraints on custom user models & admin. Require uritemplate for OpenAPI schema generation, but not coreapi. 3.10.0 Switch to OpenAPI schema generation. Drop Python 2 support. Add generateschema --generator_class CLI option Updated PyYaml dependency for OpenAPI schema generation to pyyaml>=5.1 Resolve DeprecationWarning with markdown. Use user.get_username in templates, in preference to user.username. Fix for cursor pagination issue that could occur after object deletions. Fix for nullable fields with source="*" Always apply all throttle classes during throttling checks. Updates to jQuery and Markdown dependencies. Don't strict disallow redundant SerializerMethodField field name arguments. Don't render extra actions in browable API if not authenticated. Strip null characters from search parameters. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2019/05/13 15:52:13 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.10.3 @ 1.26 log @py-djangorestframework: updated to 3.9.4 3.9.4 This is a maintenance release that fixes an error handling bug under Python 2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2019/04/30 07:57:19 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.9.4 d17 2 @ 1.25 log @py-djangorestframework: updated to 3.9.3 3.9.3 This is the last Django REST Framework release that will support Python 2. Be sure to upgrade to Python 3 before upgrading to Django REST Framework 3.10. Adjusted the compat check for django-guardian to allow the last guardian version (v1.4.9) compatible with Python 2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2019/03/04 08:29:25 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.9.3 @ 1.24 log @py-djangorestframework: updated to 3.9.2 3.9.2: Routers: invalidate _urls cache on register() Deferred schema renderer creation to avoid requiring pyyaml. Added 'request_forms' block to base.html Fixed SchemaView to reset renderer on exception. Update Django Guardian dependency. Ensured support for Django 2.2. Made templates compatible with session-based CSRF. Adjusted field validators to accept non-list iterables. Added SearchFilter.get_search_fields() hook. Fix DeprecationWarning when accessing collections.abc classes via collections Allowed Q objects in limit_choices_to introspection. Added lazy evaluation to composed permissions. Add negation ~ operator to permissions composition Avoided calling distinct on annotated fields in SearchFilter. Introduced RemovedInDRF…Warning classes to simplify deprecations. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2019/01/16 19:24:12 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.9.2 @ 1.23 log @py-djangorestframework: updated to 3.9.1 3.9.1 Resolve XSS issue in browsable API. Upgrade Bootstrap to 3.4.0 to resolve XSS issue. Resolve issues with composable permissions. Respect limit_choices_to on foreign keys. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2018/10/23 07:57:05 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.9.1 @ 1.22 log @py-djangorestframework: updated to 3.9.0 3.9.0: Improvements to ViewSet extra actions Fix action support for ViewSet suffixes Allow action docs sections Deprecate the Router.register base_name argument in favor of basename. Deprecate the Router.get_default_base_name method in favor of Router.get_default_basename. Change CharField to disallow null bytes. To revert to the old behavior, subclass CharField and remove ProhibitNullCharactersValidator from the validators. python class NullableCharField(serializers.CharField): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.validators = [v for v in self.validators if not isinstance(v, ProhibitNullCharactersValidator)] Add OpenAPIRenderer and generate_schema management command. Add OpenAPIRenderer by default, and add schema docs. Allow permissions to be composed Allow nullable BooleanField in Django 2.1 Add testing of Python 3.7 support Test using Django 2.1 final release. Added djangorestframework-datatables to third-party packages Change ISO 8601 date format to exclude year/month Update all pypi.python.org URLs to pypi.org Ensure that html forms (multipart form data) respect optional fields Allow hashing of ErrorDetail. Correct schema parsing for JSONField Render descriptions (from help_text) using safe Removed input value from deault_error_message Added min_value/max_value support in DurationField Fixed instance being overwritten in pk-only optimization try/except block Fixed AttributeError from items filter when value is None Fixed Javascript e.indexOf is not a function error Fix schemas for extra actions Improved get_error_detail to use error_dict/error_list Imprvied URLs in Admin renderer Add "Community" section to docs, minor cleanup Moved guardian imports out of compat Deprecate the DjangoObjectPermissionsFilter class, moved to the djangorestframework-guardian package. Drop Django 1.10 support Only catch TypeError/ValueError for object lookups Handle models without .objects manager in ModelSerializer. Improve ModelSerializer.create() error message. Fix CSRF cookie check failure when using session auth with django 1.11.6+ Updated JWT docs. Fix autoescape not getting passed to urlize_quoted_links filter @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2018/04/07 19:55:22 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.9.0 @ 1.21 log @py-djangorestframework: updated to 3.8.2 Version 3.8.2: Fix read_only + default unique_together validation. authtoken.views import coreapi from rest_framework.compat, not directly. Docs: Add missing argument 'detail' to Route @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2018/04/05 08:14:18 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.8.2 d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django @ 1.20 log @py-djangorestframework: updated to 3.8.1 Version 3.8.1: Use old url_name behavior in route decorators For list_route and detail_route maintain the old behavior of url_name, basing it on the url_path instead of the function name. Version 3.8: Breaking Change: Alter read_only plus default behaviour. Correct allow_null behaviour when required=False Refactor dynamic route generation and improve viewset action introspectibility. Fix formatting of the 3.7.4 release note Docs: Update DRF Writable Nested Serializers references Docs: Fixed typo in auth URLs example. Improve composite field child errors Disable HTML inputs for dict/list fields Fix typo in HostNameVersioning doc Use rsplit to get module and classname for imports Formalize URLPatternsTestCase Add exception translation test Test staticfiles Add drf-yasg to documentation and schema 3rd party packages Remove unused compat._resolve_model() Drop compat workaround for unsupported Python 3.2 Prefer iter(dict) over iter(dict.keys()) Pass python_requires argument to setuptools Remove unused links from docs Prefer https protocol for links in docs when available Add HStoreField, postgres fields tests Always fully qualify ValidationError in docs Remove unreachable code from ManualSchema Allowed customising API documentation code samples Updated docs to use pip show Load 'static' instead of 'staticfiles' in templates Fixed a typo in fields docs Refer to "NamespaceVersioning" instead of "NamespacedVersioning" in the documentation ErrorDetail: add __eq__/__ne__ and __repr__ Replace background-attachment: fixed in docs Make 404 & 403 responses consistent with exceptions.APIException output Small fix to API documentation: schemas Fix schema generation for PrimaryKeyRelatedField Represent serializer DictField as an Object in schema Added docs example reimplementing ObtainAuthToken Add schema to the ObtainAuthToken view Fix request formdata handling Fix authtoken views imports Update pytest, isort Fixed active timezone handling for non ISO8601 datetimes. Made TemplateHTMLRenderer render IntegerField inputs when value is 0. Corrected endpoint in tutorial instructions Add Django Rest Framework Role Filters to Third party packages Use single copy of static assets. Update jQuery Changes ternary conditionals to be PEP308 compliant Added links to 'A Todo List API with React' and 'Blog API' tutorials Fix comment typo in ModelSerializer Add admin to installed apps to avoid test failures. Fixed schema for UUIDField in SimpleMetadata. Corrected docs on router include with namespaces. Test using model objects for dotted source default Allow traversing nullable related fields Added: Tutorial: Django REST with React (Django 2.0) Add LimitOffsetPagination.get_count to allow method override Don't show hidden fields in metadata Enable OrderingFilter to handle an empty tuple (or list) for the 'ordering' field. Added generic 500 and 400 JSON error handlers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2017/12/21 13:42:43 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.8.1 @ 1.19 log @py-djangorestframework: updated to 3.7.7 3.7.7: Fix typo to include *.mo locale files to packaging. 3.7.6: Add missing *.ico icon files to packaging. 3.7.5 Add missing *.woff2 font files to packaging. Add missing *.mo locale files to packaging. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2017/12/21 07:33:44 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.7.7 @ 1.18 log @py-djangorestframework: updated to 3.7.4 3.7.4: Schema: Extract method for manual_fields processing 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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2017/11/08 12:29:22 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.7.4 @ 1.17 log @py-djangorestframework: updated to 3.7.3 Version 3.7.3: Fix AppRegistryNotReady error importing contrib.auth views Version 3.7.2: Fixed Django 2.1 compatibility due to removal of django.contrib.auth.login()/logout() views. Add missing import for TextLexer. Adding examples and documentation for caching Include date and date-time format for schema generation Use triple backticks for markdown code blocks Interactive docs - make bottom sidebar items sticky Clarify pagination system check Stop JSONBoundField mangling invalid JSON Have JSONField render as textarea in Browsable API Schema: Exclude OPTIONS/HEAD for ViewSet actions Fix ordering for dotted sources Fix: Fields with allow_null=True should imply a default serialization value Ensure Location header is strictly a 'str', not subclass. Add import to example in api-guide/parsers Catch OverflowError for "out of range" datetimes Add djangorestframework-rapidjson to third party packages Increase test coverage for drf_create_token command Add trove classifier for Python 3.6 support. Add pip cache support to the Travis CI configuration Rename [wheel] section to [bdist_wheel] as the former is legacy Fix invalid escape sequence deprecation warnings Add interactive docs error template Add rounding parameter to DecimalField Fix all BytesWarning caught during tests Use dict and set literals instead of calls to dict() and set() Change ImageField validation pattern, use validators from DjangoImageField Fix processing unicode symbols in query_string by Python 2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2017/10/17 06:30:30 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.7.3 d15 1 a15 1 USE_LANGUAGES= # empty @ 1.16 log @py-djangorestframework: update to 3.7.1 Version 3.7.1 Fix Interactive documentation always uses false for boolean fields in requests Improve compatibility with Django 2.0 alpha. Improved handling of schema naming collisions Added additional docs and tests around providing a default value for dotted source fields @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2017/10/08 09:43:29 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.7.1 @ 1.15 log @py-djangorestframework: update to 3.7.0 Django REST framework 3.7 The 3.7 release focuses on improvements to schema generation and the interactive API documentation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2017/08/25 06:03:10 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.7.0 @ 1.14 log @3.6.4 Ignore any invalidly formed query parameters for OrderingFilter. Improve memory footprint when reading large JSON requests. Fix schema generation for pagination. Fix exception when HTML_CUTOFF is set to None. Fix browsable API not supporting multipart/form-data correctly. Fixed test_hyperlinked_related_lookup_url_encoded_exists. Make sure max_length is in FileField kwargs. Fix list_route & detail_route with kwargs contains curly bracket in url_path Add Django manage command to create a DRF user Token. Ensure API documentation templates do not check for user authentication Fix special case where OneToOneField is also primary key. Added aria-label and a new region for accessibility purposes in base.html Quote nested API parameters in api.js. Set ViewSet args/kwargs/request before dispatch. Added unicode support to SlugField. Fix HiddenField appears in Raw Data form initial content. Raise validation error on invalid timezone parsing. Fix SearchFilter to-many behavior/performance. Simplified chained comparisons and minor code fixes. RemoteUserAuthentication, docs, and tests. Revert "Cached the field's root and context property" Fix introspection of list field in schema. Fix interactive docs for multiple nested and extra methods. Fix/remove undefined template var "schema" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2017/05/15 09:33:21 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.6.4 @ 1.13 log @Changes 3.6.3: Bug fixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2017/03/12 18:52:48 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.6.3 @ 1.12 log @The 3.6 release adds two major new features to REST framework. * Built-in interactive API documentation support. * A new JavaScript client library. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2017/02/13 21:52:17 adam Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.6.2 @ 1.11 log @Changes 3.5.4: The 3.5 release is the second in a planned series that is addressing schema generation, hypermedia support, API client libraries, and finally realtime support. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2017/01/01 14:44:04 wiz Exp $ d3 1 a3 1 DISTNAME= djangorestframework-3.5.4 @ 1.10 log @Add python-3.6 to incompatible versions. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2016/07/09 13:04:14 wiz Exp $ d3 1 a3 1 DISTNAME= djangorestframework-0.2.3 a15 1 PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 0.2.3 @ 1.9 log @Remove python33: adapt all packages that refer to it. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2016/06/08 17:43:45 wiz Exp $ d16 1 a16 1 PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # not yet ported as of 0.2.3 @ 1.8 log @Switch to MASTER_SITES_PYPI. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2015/12/05 21:26:05 adam Exp $ d16 1 a16 1 PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.2.3 @ 1.7 log @Extend PYTHON_VERSIONS_INCOMPATIBLE to 35 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2014/12/31 13:57:32 wiz Exp $ d6 1 a6 1 MASTER_SITES= http://pypi.python.org/packages/source/d/djangorestframework/ @ 1.6 log @Improve EGG_NAME default to work for packages with '-' in their name. Remove now unnecessary overrides in various packages. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2014/05/09 07:37:25 wiz Exp $ d16 1 a16 1 PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 0.2.3 @ 1.5 log @Mark packages that are not ready for python-3.3 also not ready for 3.4, until proven otherwise. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2014/01/25 10:30:28 wiz Exp $ a14 1 EGG_NAME= ${DISTNAME} @ 1.4 log @Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2012/10/28 06:31:00 asau Exp $ d17 1 a17 1 PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 0.2.3 @ 1.3 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2012/04/08 19:09:16 wiz Exp $ d13 2 d17 1 a17 2 DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django @ 1.2 log @Remove python24 and all traces of it from pkgsrc. Remove devel/py-ctypes (only needed by and supporting python24). Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE lines that just mirror defaults now. Miscellaneous cleanup while editing all these files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2011/09/12 08:21:29 adam Exp $ a12 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ a14 2 PYTHON_VERSIONS_ACCEPTED= 27 26 25 @ 1.1.1.1 log @Django REST framework is a lightweight REST framework for Django, that aims to make it easy to build well-connected, self-describing RESTful Web APIs. Features: * Automatically provides an awesome Django admin style browse-able self-documenting API. * Clean, simple, views for Resources, using Django's new class based views. * Support for ModelResources with out-of-the-box default implementations and input validation. * Pluggable parsers, renderers, authentication and permissions - Easy to customise. * Content type negotiation using HTTP Accept headers. * Optional support for forms as input validation. * Modular architecture - MixIn classes can be used without requiring the Resource or ModelResource classes. @ text @@