./www/py-djangorestframework, Lightweight REST framework for Django

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.15.2, Package name: py312-djangorestframework-3.15.2, Maintainer: adam

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.


Required to run:
[www/py-django] [devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 1042.402 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-22 19:45:23 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
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
   2023-09-29 00:26:33 by Joerg Sonnenberger | Files touched by this commit (4)
Log message:
Extract using bsdtar, nbpax is broken
   2023-08-05 08:19:18 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
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.
   2023-07-13 12:03:31 by Thomas Klausner | Files touched by this commit (45)
Log message:
*: switch django users to py-django3
   2022-01-24 15:32:59 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
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.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:31:15 by Nia Alarie | Files touched by this commit (1030)
Log message:
www: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Not committed (merge conflicts):
www/nghttp2/distinfo

Unfetchable distfiles (almost certainly fetched conditionally...):
./www/nginx-devel/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx-devel/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx-devel/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx-devel/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx-devel/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx-devel/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx-devel/distinfo naxsi-1.3.tar.gz
./www/nginx-devel/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx-devel/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx-devel/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx-devel/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx-devel/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx-devel/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx-devel/distinfo njs-0.5.0.tar.gz
./www/nginx-devel/distinfo set-misc-nginx-module-0.32.tar.gz
./www/nginx/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx/distinfo naxsi-1.3.tar.gz
./www/nginx/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx/distinfo njs-0.5.0.tar.gz
./www/nginx/distinfo set-misc-nginx-module-0.32.tar.gz
   2021-10-07 17:09:00 by Nia Alarie | Files touched by this commit (1033)
Log message:
www: Remove SHA1 hashes for distfiles