./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-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-08-15 23:55:19 by Thomas Klausner | Files touched by this commit (6)
Log message:
*: remove Python 3.9 specific dependencies

in a quest to fix pbulk
   2024-06-19 17:22:13 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-djangorestframework: updated to 3.15.2

3.15.2

Fix potential XSS vulnerability in browsable API.
Revert "Ensure CursorPagination respects nulls in the ordering field".
Use warnings rather than logging a warning for DecimalField.
Remove unused code.
   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.