Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin djangorestframework to latest version 3.5.1 #16

Merged
merged 1 commit into from Nov 1, 2016

Conversation

pyup-bot
Copy link
Collaborator

djangorestframework is not pinned to a specific version.

I'm pinning it to the latest version 3.5.1 for now.

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

Changelog

3.5.1

Date: 21st October 2016

  • Make rest_framework/compat.py imports. (4612, 4608, 4601)
  • Fix bug in schema base path generation. (4611, 4605)
  • Fix broken case of ListSerializer with single item. (4609, 4606)
  • Remove bare raise for Python 3.5 compat. (4600)

3.5.0

Date: 20th October 2016

3.4.x series

3.4.7

Date: 21st September 2016

  • Fallback behavior for request parsing when request.POST already accessed. (3951, 4500)
  • Fix regression of RegexField. (4489, 4490, 2617)
  • Missing comma in admin.html causing CSRF error. (4472, 4473)
  • Fix response rendering with empty context. (4495)
  • Fix indentation regression in API listing. (4493)
  • Fixed an issue where the incorrect value is set to ResolverMatch.func_name of api_view decorated view. (4465, 4462)
  • Fix APIClient.get() when path contains unicode arguments (4458)

3.4.6

Date: 23rd August 2016

  • Fix malformed Javascript in browsable API. (4435)
  • Skip HiddenField from Schema fields. (4425, 4429)
  • Improve Create to show the original exception traceback. (3508)
  • Fix AdminRenderer display of PK only related fields. (4419, 4423)

3.4.5

Date: 19th August 2016

  • Improve debug error handling. ([4416][gh4416], [4409][gh4409])
  • Allow custom CSRF_HEADER_NAME setting. ([4415][gh4415], [4410][gh4410])
  • Include .action attribute on viewsets when generating schemas. ([4408][gh4408], [4398][gh4398])
  • Do not include request.FILES items in request.POST. ([4407][gh4407])
  • Fix rendering of checkbox multiple. ([4403][gh4403])
  • Fix docstring of Field.get_default. ([4404][gh4404])
  • Replace utf8 character with its ascii counterpart in README. ([4412][gh4412])

3.4.4

Date: 12th August 2016

  • Ensure views are fully initialized when generating schemas. (4373, 4382, 4383, 4279, 4278)
  • Add form field descriptions to schemas. (4387)
  • Fix category generation for schema endpoints. (4391, 4394, 4390, 4386, 4376, 4329)
  • Don't strip empty query params when paginating. (4392, 4393, 4260)
  • Do not re-run query for empty results with LimitOffsetPagination. (4201, 4388)
  • Stricter type validation for CharField. (4380, 3394)
  • RelatedField.choices should preserve non-string values. (4111, 4379, 3365)
  • Test case for rendering checkboxes in vertical form style. (4378, 3868, 3868)
  • Show error traceback HTML in browsable API (4042, 4172)
  • Fix handling of ALLOWED_VERSIONS and no DEFAULT_VERSION. 4370
  • Allow max_digits=None on DecimalField. (4377, 4372)
  • Limit queryset when rendering relational choices. (4375, 4122, 3329, 3330, 3877)
  • Resolve form display with ChoiceField, MultipleChoiceField and non-string choices. (4374, 4119, 4121, 4137, 4120)
  • Fix call to TemplateHTMLRenderer.resolve_context() fallback method. (4371)

3.4.3

Date: 5th August 2016

  • Include fallaback for users of older TemplateHTMLRenderer internal API. ([4361][gh4361])

3.4.2

Date: 5th August 2016

  • Include kwargs passed to 'as_view' when generating schemas. ([4359][gh4359], [4330][gh4330], [4331][gh4331])
  • Access request.user.is_authenticated as property not method, under Django 1.10+ ([4358][gh4358], [4354][gh4354])
  • Filter HEAD out from schemas. ([4357][gh4357])
  • extra_kwargs takes precedence over uniqueness kwargs. ([4198][gh4198], [4199][gh4199], [4349][gh4349])
  • Correct descriptions when tabs are used in code indentation. ([4345][gh4345], [4347][gh4347])*
  • Change template context generation in TemplateHTMLRenderer. ([4236][gh4236])
  • Serializer defaults should not be included in partial updates. ([4346][gh4346], [3565][gh3565])
  • Consistent behavior & descriptive error from FileUploadParser when filename not included. ([4340][gh4340], [3610][gh3610], [4292][gh4292], [4296][gh4296])
  • DecimalField quantizes incoming digitals. ([4339][gh4339], [4318][gh4318])
  • Handle non-string input for IP fields. ([4335][gh4335], [4336][gh4336], [4338][gh4338])
  • Fix leading slash handling when Schema generation includes a root URL. ([4332][gh4332])
  • Test cases for DictField with allow_null options. ([4348][gh4348])
  • Update tests from Django 1.10 beta to Django 1.10. ([4344][gh4344])

3.4.1

Date: 28th July 2016

  • Added root_renderers argument to DefaultRouter. ([4323][gh4323], [4268][gh4268])
  • Added url and schema_url arguments. ([4321][gh4321], [4308][gh4308], [4305][gh4305])
  • Unique together checks should apply to read-only fields which have a default. ([4316][gh4316], [4294][gh4294])
  • Set view.format_kwarg in schema generator. ([4293][gh4293], [4315][gh4315])
  • Fix schema generator for views with pagination_class = None. ([4314][gh4314], [4289][gh4289])
  • Fix schema generator for views with no get_serializer_class. ([4265][gh4265], [4285][gh4285])
  • Fixes for media type parameters in Accept and Content-Type headers. ([4287][gh4287], [4313][gh4313], [4281][gh4281])
  • Use verbose_name instead of object_name in error messages. ([4299][gh4299])
  • Minor version update to Twitter Bootstrap. ([4307][gh4307])
  • SearchFilter raises error when using with related field. ([4302][gh4302], [4303][gh4303], [4298][gh4298])
  • Adding support for RFC 4918 status codes. ([4291][gh4291])
  • Add LICENSE.md to the built wheel. ([4270][gh4270])
  • Serializing "complex" field returns None instead of the value since 3.4 ([4272][gh4272], [4273][gh4273], [4288][gh4288])

3.4.0

Date: 14th July 2016

  • Don't strip microseconds in JSON output. ([4256][gh4256])
  • Two slightly different iso 8601 datetime serialization. ([4255][gh4255])
  • Resolve incorrect inclusion of media type parameters. ([4254][gh4254])
  • Response Content-Type potentially malformed. ([4253][gh4253])
  • Fix setup.py error on some platforms. ([4246][gh4246])
  • Move alternate formats in coreapi into separate packages. ([4244][gh4244])
  • Add localize keyword argument to DecimalField. ([4233][gh4233])
  • Fix issues with routers for custom list-route and detail-routes. ([4229][gh4229])
  • Namespace versioning with nested namespaces. ([4219][gh4219])
  • Robust uniqueness checks. ([4217][gh4217])
  • Minor refactoring of must_call_distinct. ([4215][gh4215])
  • Overridable offset cutoff in CursorPagination. ([4212][gh4212])
  • Pass through strings as-in with date/time fields. ([4196][gh4196])
  • Add test confirming that required=False is valid on a relational field. ([4195][gh4195])
  • In LimitOffsetPagination limit=0 should revert to default limit. ([4194][gh4194])
  • Exclude read_only=True fields from unique_together validation & add docs. ([4192][gh4192])
  • Handle bytestrings in JSON. ([4191][gh4191])
  • JSONField(binary=True) represents using binary strings, which JSONRenderer does not support. ([4187][gh4187])
  • JSONField(binary=True) represents using binary strings, which JSONRenderer does not support. ([4185][gh4185])
  • More robust form rendering in the browsable API. ([4181][gh4181])
  • Empty cases of .validated_data and .errors as lists not dicts for ListSerializer. ([4180][gh4180])
  • Schemas & client libraries. ([4179][gh4179])
  • Removed AUTH_USER_MODEL compat property. ([4176][gh4176])
  • Clean up existing deprecation warnings. ([4166][gh4166])
  • Django 1.10 support. ([4158][gh4158])
  • Updated jQuery version to 1.12.4. ([4157][gh4157])
  • More robust default behavior on OrderingFilter. ([4156][gh4156])
  • description.py codes and tests removal. ([4153][gh4153])
  • Wrap guardian.VERSION in tuple. ([4149][gh4149])
  • Refine validator for fields with <source=> kwargs. ([4146][gh4146])
  • Fix None values representation in childs of ListField, DictField. ([4118][gh4118])
  • Resolve TimeField representation for midnight value. ([4107][gh4107])
  • Set proper status code in AdminRenderer for the redirection after POST/DELETE requests. ([4106][gh4106])
  • TimeField render returns None instead of 00:00:00. ([4105][gh4105])
  • Fix incorrectly named zh-hans and zh-hant locale path. ([4103][gh4103])
  • Prevent raising exception when limit is 0. ([4098][gh4098])
  • TokenAuthentication: Allow custom keyword in the header. ([4097][gh4097])
  • Handle incorrectly padded HTTP basic auth header. ([4090][gh4090])
  • LimitOffset pagination crashes Browseable API when limit=0. ([4079][gh4079])
  • Fixed DecimalField arbitrary precision support. ([4075][gh4075])
  • Added support for custom CSRF cookie names. ([4049][gh4049])
  • Fix regression introduced by 4035. ([4041][gh4041])
  • No auth view failing permission should raise 403. ([4040][gh4040])
  • Fix string_types / text_types confusion. ([4025][gh4025])
  • Do not list related field choices in OPTIONS requests. ([4021][gh4021])
  • Fix typo. ([4008][gh4008])
  • Reorder initializing the view. ([4006][gh4006])
  • Type error in DjangoObjectPermissionsFilter on Python 3.4. ([4005][gh4005])
  • Fixed use of deprecated Query.aggregates. ([4003][gh4003])
  • Fix blank lines around docstrings. ([4002][gh4002])
  • Fixed admin pagination when limit is 0. ([3990][gh3990])
  • OrderingFilter adjustements. ([3983][gh3983])
  • Non-required serializer related fields. ([3976][gh3976])
  • Using safer calling way of "api_view" in tutorial. ([3971][gh3971])
  • ListSerializer doesn't handle unique_together constraints. ([3970][gh3970])
  • Add missing migration file. ([3968][gh3968])
  • OrderingFilter should call get_serializer_class() to determine default fields. ([3964][gh3964])
  • Remove old django checks from tests and compat. ([3953][gh3953])
  • Support callable as the value of initial for any serializer.Field. ([3943][gh3943])
  • Prevented unnecessary distinct() call in SearchFilter. ([3938][gh3938])
  • Fix None UUID ForeignKey serialization. ([3936][gh3936])
  • Drop EOL Django 1.7. ([3933][gh3933])
  • Add missing space in serializer error message. ([3926][gh3926])
  • Fixed _force_text_recursive typo. ([3908][gh3908])
  • Attempt to address Django 2.0 deprecate warnings related to field.rel. ([3906][gh3906])
  • Fix parsing multipart data using a nested serializer with list. ([3820][gh3820])
  • Resolving APIs URL to different namespaces. ([3816][gh3816])
  • Do not HTML-escape help_text in Browsable API forms. ([3812][gh3812])
  • OPTIONS fetches and shows all possible foreign keys in choices field. ([3751][gh3751])
  • Django 1.9 deprecation warnings ([3729][gh3729])
  • Test case for 3598 ([3710][gh3710])
  • Adding support for multiple values for search filter. ([3541][gh3541])
  • Use get_serializer_class in ordering filter. ([3487][gh3487])
  • Serializers with many=True should return empty list rather than empty dict. ([3476][gh3476])
  • LimitOffsetPagination limit=0 fix. ([3444][gh3444])
  • Enable Validators to defer string evaluation and handle new string format. ([3438][gh3438])
  • Unique validator is executed and breaks if field is invalid. ([3381][gh3381])
  • Do not ignore overridden View.get_view_name() in breadcrumbs. ([3273][gh3273])
  • Retry form rendering when rendering with serializer fails. ([3164][gh3164])
  • Unique constraint prevents nested serializers from updating. ([2996][gh2996])
  • Uniqueness validators should not be run for excluded (read_only) fields. ([2848][gh2848])
  • UniqueValidator raises exception for nested objects. ([2403][gh2403])

* lookup_type is deprecated in favor of lookup_expr. ([4259][gh4259])

3.3.x series

3.3.3

Date: 14th March 2016.

  • Remove version string from templates. Thanks to blag for the report and fixes. ([3878][gh3878], [3913][gh3913], [3912][gh3912])
  • Fixes vertical html layout for BooleanField. Thanks to Mikalai Radchuk for the fix. ([3910][gh3910])
  • Silenced deprecation warnings on Django 1.8. Thanks to Simon Charette for the fix. ([3903][gh3903])
  • Internationalization for authtoken. Thanks to Michael Nacharov for the fix. ([3887][gh3887], [3968][gh3968])
  • Fix Token model as abstract when the authtoken application isn't declared. Thanks to Adam Thomas for the report. ([3860][gh3860], [3858][gh3858])
  • Improve Markdown version compatibility. Thanks to Michael J. Schultz for the fix. ([3604][gh3604], [3842][gh3842])
  • QueryParameterVersioning does not use DEFAULT_VERSION setting. Thanks to Brad Montgomery for the fix. ([3833][gh3833])
  • Add an explicit on_delete on the models. Thanks to Mads Jensen for the fix. ([3832][gh3832])
  • Fix DateField.to_representation to work with Python 2 unicode. Thanks to Mikalai Radchuk for the fix. ([3819][gh3819])
  • Fixed TimeField not handling string times. Thanks to Areski Belaid for the fix. ([3809][gh3809])
  • Avoid updates of Meta.extra_kwargs. Thanks to Kevin Massey for the report and fix. ([3805][gh3805], [3804][gh3804])
  • Fix nested validation error being rendered incorrectly. Thanks to Craig de Stigter for the fix. ([3801][gh3801])
  • Document how to avoid CSRF and missing button issues with django-crispy-forms. Thanks to Emmanuelle Delescolle, José Padilla and Luis San Pablo for the report, analysis and fix. ([3787][gh3787], [3636][gh3636], [3637][gh3637])
  • Improve Rest Framework Settings file setup time. Thanks to Miles Hutson for the report and Mads Jensen for the fix. ([3786][gh3786], [3815][gh3815])
  • Improve authtoken compatibility with Django 1.9. Thanks to S. Andrew Sheppard for the fix. ([3785][gh3785])
  • Fix Min/MaxValueValidator transfer from a model's DecimalField. Thanks to Kevin Brown for the fix. ([3774][gh3774])
  • Improve HTML title in the Browsable API. Thanks to Mike Lissner for the report and fix. ([3769][gh3769])
  • Fix AutoFilterSet to inherit from default_filter_set. Thanks to Tom Linford for the fix. ([3753][gh3753])
  • Fix transifex config to handle the new Chinese language codes. Thanks to nypisces for the report and fix. ([3739][gh3739])
  • DateTimeField does not handle empty values correctly. Thanks to Mick Parker for the report and fix. ([3731][gh3731], [3726][gh3728])
  • Raise error when setting a removed rest_framework setting. Thanks to Luis San Pablo for the fix. ([3715][gh3715])
  • Add missing csrf_token in AdminRenderer post form. Thanks to Piotr Śniegowski for the fix. ([3703][gh3703])
  • Refactored _get_reverse_relationships() to use correct to_field. Thanks to Benjamin Phillips for the fix. ([3696][gh3696])
  • Document the use of get_queryset for RelatedField. Thanks to Ryan Hiebert for the fix. ([3605][gh3605])
  • Fix empty pk detection in HyperlinkRelatedField.get_url. Thanks to jslang for the fix ([3962][gh3962])

3.3.2

Date: 14th December 2015.

  • ListField enforces input is a list. ([3513][gh3513])
  • Fix regression hiding raw data form. ([3600][gh3600], [3578][gh3578])
  • Fix Python 3.5 compatibility. ([3534][gh3534], [3626][gh3626])
  • Allow setting a custom Django Paginator in pagination.PageNumberPagination. ([3631][gh3631], [3684][gh3684])
  • Fix relational fields without to_fields attribute. ([3635][gh3635], [3634][gh3634])
  • Fix template.render deprecation warnings for Django 1.9. ([3654][gh3654])
  • Sort response headers in browsable API renderer. ([3655][gh3655])
  • Use related_objects api for Django 1.9+. ([3656][gh3656], [3252][gh3252])
  • Add confirm modal when deleting. ([3228][gh3228], [3662][gh3662])
  • Reveal previously hidden AttributeErrors and TypeErrors while calling has_[object_]permissions. ([3668][gh3668])
  • Make DRF compatible with multi template engine in Django 1.8. ([3672][gh3672])
  • Update NestedBoundField to also handle empty string when rendering its form. ([3677][gh3677])
  • Fix UUID validation to properly catch invalid input types. ([3687][gh3687], [3679][gh3679])
  • Fix caching issues. ([3628][gh3628], [3701][gh3701])
  • Fix Admin and API browser for views without a filter_class. ([3705][gh3705], [3596][gh3596], [3597][gh3597])
  • Add app_name to rest_framework.urls. ([3714][gh3714])
  • Improve authtoken's views to support url versioning. ([3718][gh3718], [3723][gh3723])

3.3.1

Date: 4th November 2015.

  • Resolve parsing bug when accessing request.POST ([3592][gh3592])
  • Correctly deal with to_field referring to primary key. ([3593][gh3593])
  • Allow filter HTML to render when no filter_class is defined. ([3560][gh3560])
  • Fix admin rendering issues. ([3564][gh3564], [3556][gh3556])
  • Fix issue with DecimalValidator. ([3568][gh3568])

3.3.0

Date: 28th October 2015.

  • HTML controls for filters. ([3315][gh3315])
  • Forms API. ([3475][gh3475])
  • AJAX browsable API. ([3410][gh3410])
  • Added JSONField. ([3454][gh3454])
  • Correctly map to_field when creating ModelSerializer relational fields. ([3526][gh3526])
  • Include keyword arguments when mapping FilePathField to a serializer field. ([3536][gh3536])
  • Map appropriate model error_messages on ModelSerializer uniqueness constraints. ([3435][gh3435])
  • Include max_length constraint for ModelSerializer fields mapped from TextField. ([3509][gh3509])
  • Added support for Django 1.9. ([3450][gh3450], [3525][gh3525])
  • Removed support for Django 1.5 & 1.6. ([3421][gh3421], [3429][gh3429])
  • Removed 'south' migrations. ([3495][gh3495])

3.2.x series

3.2.5

Date: 27th October 2015.

  • Escape username in optional logout tag. ([3550][gh3550])

3.2.4

Date: 21th September 2015.

  • Don't error on missing ViewSet.search_fields attribute. ([3324][gh3324], [3323][gh3323])
  • Fix allow_empty not working on serializers with many=True. ([3361][gh3361], [3364][gh3364])
  • Let DurationField accepts integers. ([3359][gh3359])
  • Multi-level dictionaries not supported in multipart requests. ([3314][gh3314])
  • Fix ListField truncation on HTTP PATCH ([3415][gh3415], [2761][gh2761])

3.2.3

Date: 24th August 2015.

  • Added html_cutoff and html_cutoff_text for limiting select dropdowns. ([3313][gh3313])
  • Added regex style to SearchFilter. ([3316][gh3316])
  • Resolve issues with setting blank HTML fields. ([3318][gh3318]) ([3321][gh3321])
  • Correctly display existing 'select multiple' values in browsable API forms. ([3290][gh3290])
  • Resolve duplicated validation message for IPAddressField. ([3249[gh3249]) ([3250][gh3250])
  • Fix to ensure admin renderer continues to work when pagination is disabled. ([3275][gh3275])
  • Resolve error with LimitOffsetPagination when count=0, offset=0. ([3303][gh3303])

3.2.2

Date: 13th August 2015.

  • Add display_value() method for use when displaying relational field select inputs. ([3254][gh3254])
  • Fix issue with BooleanField checkboxes incorrectly displaying as checked. ([3258][gh3258])
  • Ensure empty checkboxes properly set BooleanField to False in all cases. ([2776][gh2776])
  • Allow WSGIRequest.FILES property without raising incorrect deprecated error. ([3261][gh3261])
  • Resolve issue with rendering nested serializers in forms. ([3260][gh3260])
  • Raise an error if user accidentally pass a serializer instance to a response, rather than data. ([3241][gh3241])

3.2.1

Date: 7th August 2015.

  • Fix for relational select widgets rendering without any choices. ([3237][gh3237])
  • Fix for 1, 0 rendering as true, false in the admin interface. [3227][gh3227])
  • Fix for ListFields with single value in HTML form input. ([3238][gh3238])
  • Allow request.FILES for compat with Django's HTTPRequest class. ([3239][gh3239])

3.2.0

Date: 6th August 2015.

  • Add AdminRenderer. ([2926][gh2926])
  • Add FilePathField. ([1854][gh1854])
  • Add allow_empty to ListField. ([2250][gh2250])
  • Support django-guardian 1.3. ([3165][gh3165])
  • Support grouped choices. ([3225][gh3225])
  • Support error forms in browsable API. ([3024][gh3024])
  • Allow permission classes to customize the error message. ([2539][gh2539])
  • Support source=&lt;method&gt; on hyperlinked fields. ([2690][gh2690])
  • ListField(allow_null=True) now allows null as the list value, not null items in the list. ([2766][gh2766])
  • ManyToMany() maps to allow_empty=False, ManyToMany(blank=True) maps to allow_empty=True. ([2804][gh2804])
  • Support custom serialization styles for primary key fields. ([2789][gh2789])
  • OPTIONS requests support nested representations. ([2915][gh2915])
  • Set view.action == &quot;metadata&quot; for viewsets with OPTIONS requests. ([3115][gh3115])
  • Support allow_blank on UUIDField. ([3130][gh3130])
  • Do not display view docstrings with 401 or 403 response codes. ([3216][gh3216])
  • Resolve Django 1.8 deprecation warnings. ([2886][gh2886])
  • Fix for DecimalField validation. ([3139][gh3139])
  • Fix behavior of allow_blank=False when used with trim_whitespace=True. ([2712][gh2712])
  • Fix issue with some field combinations incorrectly mapping to an invalid allow_blank argument. ([3011][gh3011])
  • Fix for output representations with prefetches and modified querysets. ([2704][gh2704], [2727][gh2727])
  • Fix assertion error when CursorPagination is provided with certains invalid query parameters. (2920)[gh2920].
  • Fix UnicodeDecodeError when invalid characters included in header with TokenAuthentication. ([2928][gh2928])
  • Fix transaction rollbacks with non_atomic_requests decorator. ([3016][gh3016])
  • Fix duplicate results issue with Oracle databases using SearchFilter. ([2935][gh2935])
  • Fix checkbox alignment and rendering in browsable API forms. ([2783][gh2783])
  • Fix for unsaved file objects which should use &quot;url&quot;: null in the representation. ([2759][gh2759])
  • Fix field value rendering in browsable API. ([2416][gh2416])
  • Fix HStoreField to include allow_blank=True in DictField mapping. ([2659][gh2659])
  • Numerous other cleanups, improvements to error messaging, private API & minor fixes.

3.1.x series

3.1.3

Date: 4th June 2015.

  • Add DurationField. ([2481][gh2481], [2989][gh2989])
  • Add format argument to UUIDField. ([2788][gh2788], [3000][gh3000])
  • MultipleChoiceField empties incorrectly on a partial update using multipart/form-data ([2993][gh2993], [2894][gh2894])
  • Fix a bug in options related to read-only RelatedField. ([2981][gh2981], [2811][gh2811])
  • Fix nested serializers with unique_together relations. ([2975][gh2975])
  • Allow unexpected values for ChoiceField/MultipleChoiceField representations. ([2839][gh2839], [2940][gh2940])
  • Rollback the transaction on error if ATOMIC_REQUESTS is set. ([2887][gh2887], [2034][gh2034])
  • Set the action on a view when override_method regardless of its None-ness. ([2933][gh2933])
  • DecimalField accepts 2E+2 as 200 and validates decimal place correctly. ([2948][gh2948], [2947][gh2947])
  • Support basic authentication with custom UserModel that change username. ([2952][gh2952])
  • IPAddressField improvements. ([2747][gh2747], [2618][gh2618], [3008][gh3008])
  • Improve DecimalField for easier subclassing. ([2695][gh2695])

3.1.2

Date: 13rd May 2015.

  • DateField.to_representation can handle str and empty values. ([2656][gh2656], [2687][gh2687], [2869][gh2869])
  • Use default reason phrases from HTTP standard. ([2764][gh2764], [2763][gh2763])
  • Raise error when ModelSerializer used with abstract model. ([2757][gh2757], [2630][gh2630])
  • Handle reversal of non-API view_name in HyperLinkedRelatedField ([2724][gh2724], [2711][gh2711])
  • Dont require pk strictly for related fields. ([2745][gh2745], [2754][gh2754])
  • Metadata detects null boolean field type. ([2762][gh2762])
  • Proper handling of depth in nested serializers. ([2798][gh2798])
  • Display viewset without paginator. ([2807][gh2807])
  • Don't check for deprecated .model attribute in permissions ([2818][gh2818])
  • Restrict integer field to integers and strings. ([2835][gh2835], [2836][gh2836])
  • Improve IntegerField to use compiled decimal regex. ([2853][gh2853])
  • Prevent empty queryset to raise AssertionError. ([2862][gh2862])
  • DjangoModelPermissions rely on get_queryset. ([2863][gh2863])
  • Check AcceptHeaderVersioning with content negotiation in place. ([2868][gh2868])
  • Allow DjangoObjectPermissions to use views that define get_queryset. ([2905][gh2905])

3.1.1

Date: 23rd March 2015.

  • Security fix: Escape tab switching cookie name in browsable API.
  • Display input forms in browsable API if serializer_class is used, even when get_serializer method does not exist on the view. ([2743][gh2743])
  • Use a password input for the AuthTokenSerializer. ([2741][gh2741])
  • Fix missing anchor closing tag after next button. ([2691][gh2691])
  • Fix lookup_url_kwarg handling in viewsets. ([2685][gh2685], [2591][gh2591])
  • Fix problem with importing rest_framework.views in apps.py ([2678][gh2678])
  • LimitOffsetPagination raises TypeError if PAGE_SIZE not set ([2667][gh2667], [2700][gh2700])
  • German translation for min_value field error message references max_value. ([2645][gh2645])
  • Remove MergeDict. ([2640][gh2640])
  • Support serializing unsaved models with related fields. ([2637][gh2637], [2641][gh2641])
  • Allow blank/null on radio.html choices. ([2631][gh2631])

3.1.0

Date: 5th March 2015.

For full details see the 3.1 release announcement.

3.0.x series

3.0.5

Date: 10th February 2015.

  • Fix a bug where _closable_objects breaks pickling. ([1850][gh1850], [2492][gh2492])
  • Allow non-standard User models with Throttling. ([2524][gh2524])
  • Support custom User.db_table in TokenAuthentication migration. ([2479][gh2479])
  • Fix misleading AttributeError tracebacks on Request objects. ([2530][gh2530], [2108][gh2108])
  • ManyRelatedField.get_value clearing field on partial update. ([2475][gh2475])
  • Removed '.model' shortcut from code. ([2486][gh2486])
  • Fix detail_route and list_route mutable argument. ([2518][gh2518])
  • Prefetching the user object when getting the token in TokenAuthentication. ([2519][gh2519])

3.0.4

Date: 28th January 2015.

  • Django 1.8a1 support. ([2425][gh2425], [2446][gh2446], [2441][gh2441])
  • Add DictField and support Django 1.8 HStoreField. ([2451][gh2451], [2106][gh2106])
  • Add UUIDField and support Django 1.8 UUIDField. ([2448][gh2448], [2433][gh2433], [2432][gh2432])
  • BaseRenderer.render now raises NotImplementedError. ([2434][gh2434])
  • Fix timedelta JSON serialization on Python 2.6. ([2430][gh2430])
  • ResultDict and ResultList now appear as standard dict/list. ([2421][gh2421])
  • Fix visible HiddenField in the HTML form of the web browsable API page. ([2410][gh2410])
  • Use OrderedDict for RelatedField.choices. ([2408][gh2408])
  • Fix ident format when using HTTP_X_FORWARDED_FOR. ([2401][gh2401])
  • Fix invalid key with memcached while using throttling. ([2400][gh2400])
  • Fix FileUploadParser with version 3.x. ([2399][gh2399])
  • Fix the serializer inheritance. ([2388][gh2388])
  • Fix caching issues with ReturnDict. ([2360][gh2360])

3.0.3

Date: 8th January 2015.

  • Fix MinValueValidator on models.DateField. ([2369][gh2369])
  • Fix serializer missing context when pagination is used. ([2355][gh2355])
  • Namespaced router URLs are now supported by the DefaultRouter. ([2351][gh2351])
  • required=False allows omission of value for output. ([2342][gh2342])
  • Use textarea input for models.TextField. ([2340][gh2340])
  • Use custom ListSerializer for pagination if required. ([2331][gh2331], [2327][gh2327])
  • Better behavior with null and '' for blank HTML fields. ([2330][gh2330])
  • Ensure fields in exclude are model fields. ([2319][gh2319])
  • Fix IntegerField and max_length argument incompatibility. ([2317][gh2317])
  • Fix the YAML encoder for 3.0 serializers. ([2315][gh2315], [2283][gh2283])
  • Fix the behavior of empty HTML fields. ([2311][gh2311], [1101][gh1101])
  • Fix Metaclass attribute depth ignoring fields attribute. ([2287][gh2287])
  • Fix format_suffix_patterns to work with Django's i18n_patterns. ([2278][gh2278])
  • Ability to customize router URLs for custom actions, using url_path. ([2010][gh2010])
  • Don't install Django REST Framework as egg. ([2386][gh2386])

3.0.2

Date: 17th December 2014.

  • Ensure request.user is made available to response middleware. ([2155][gh2155])
  • Client.logout() also cancels any existing force_authenticate. ([2218][gh2218], [2259][gh2259])
  • Extra assertions and better checks to preventing incorrect serializer API use. ([2228][gh2228], [2234][gh2234], [2262][gh2262], [2263][gh2263], [2266][gh2266], [2267][gh2267], [2289][gh2289], [2291][gh2291])
  • Fixed min_length message for CharField. ([2255][gh2255])
  • Fix UnicodeDecodeError, which can occur on serializer repr. ([2270][gh2270], [2279][gh2279])
  • Fix empty HTML values when a default is provided. ([2280][gh2280], [2294][gh2294])
  • Fix SlugRelatedField raising UnicodeEncodeError when used as a multiple choice input. ([2290][gh2290])

3.0.1

Date: 11th December 2014.

  • More helpful error message when the default Serializer create() fails. ([2013][gh2013])
  • Raise error when attempting to save serializer if data is not valid. ([2098][gh2098])
  • Fix FileUploadParser breaks with empty file names and multiple upload handlers. ([2109][gh2109])
  • Improve BindingDict to support standard dict-functions. ([2135][gh2135], [2163][gh2163])
  • Add validate() to ListSerializer. ([2168][gh2168], [2225][gh2225], [2232][gh2232])
  • Fix JSONP renderer failing to escape some characters. ([2169][gh2169], [2195][gh2195])
  • Add missing default style for FileField. ([2172][gh2172])
  • Actions are required when calling ViewSet.as_view(). ([2175][gh2175])
  • Add allow_blank to ChoiceField. ([2184][gh2184], [2239][gh2239])
  • Cosmetic fixes in the HTML renderer. ([2187][gh2187])
  • Raise error if fields on serializer is not a list of strings. ([2193][gh2193], [2213][gh2213])
  • Improve checks for nested creates and updates. ([2194][gh2194], [2196][gh2196])
  • validated_attrs argument renamed to validated_data in Serializer create()/update(). ([2197][gh2197])
  • Remove deprecated code to reflect the dropped Django versions. ([2200][gh2200])
  • Better serializer errors for nested writes. ([2202][gh2202], [2215][gh2215])
  • Fix pagination and custom permissions incompatibility. ([2205][gh2205])
  • Raise error if fields on serializer is not a list of strings. ([2213][gh2213])
  • Add missing translation markers for relational fields. ([2231][gh2231])
  • Improve field lookup behavior for dicts/mappings. ([2244][gh2244], [2243][gh2243])
  • Optimized hyperlinked PK. ([2242][gh2242])

3.0.0

Date: 1st December 2014

For full details see the 3.0 release announcement.

For older release notes, please see the version 2.x documentation.

<!-- 3.0.1 -->
[gh2013]: encode/django-rest-framework#2013
[gh2098]: encode/django-rest-framework#2098
[gh2109]: encode/django-rest-framework#2109
[gh2135]: encode/django-rest-framework#2135
[gh2163]: encode/django-rest-framework#2163
[gh2168]: encode/django-rest-framework#2168
[gh2169]: encode/django-rest-framework#2169
[gh2172]: encode/django-rest-framework#2172
[gh2175]: encode/django-rest-framework#2175
[gh2184]: encode/django-rest-framework#2184
[gh2187]: encode/django-rest-framework#2187
[gh2193]: encode/django-rest-framework#2193
[gh2194]: encode/django-rest-framework#2194
[gh2195]: encode/django-rest-framework#2195
[gh2196]: encode/django-rest-framework#2196
[gh2197]: encode/django-rest-framework#2197
[gh2200]: encode/django-rest-framework#2200
[gh2202]: encode/django-rest-framework#2202
[gh2205]: encode/django-rest-framework#2205
[gh2213]: encode/django-rest-framework#2213
[gh2213]: encode/django-rest-framework#2213
[gh2215]: encode/django-rest-framework#2215
[gh2225]: encode/django-rest-framework#2225
[gh2231]: encode/django-rest-framework#2231
[gh2232]: encode/django-rest-framework#2232
[gh2239]: encode/django-rest-framework#2239
[gh2242]: encode/django-rest-framework#2242
[gh2243]: encode/django-rest-framework#2243
[gh2244]: encode/django-rest-framework#2244
<!-- 3.0.2 -->
[gh2155]: encode/django-rest-framework#2155
[gh2218]: encode/django-rest-framework#2218
[gh2228]: encode/django-rest-framework#2228
[gh2234]: encode/django-rest-framework#2234
[gh2255]: encode/django-rest-framework#2255
[gh2259]: encode/django-rest-framework#2259
[gh2262]: encode/django-rest-framework#2262
[gh2263]: encode/django-rest-framework#2263
[gh2266]: encode/django-rest-framework#2266
[gh2267]: encode/django-rest-framework#2267
[gh2270]: encode/django-rest-framework#2270
[gh2279]: encode/django-rest-framework#2279
[gh2280]: encode/django-rest-framework#2280
[gh2289]: encode/django-rest-framework#2289
[gh2290]: encode/django-rest-framework#2290
[gh2291]: encode/django-rest-framework#2291
[gh2294]: encode/django-rest-framework#2294
<!-- 3.0.3 -->
[gh1101]: encode/django-rest-framework#1101
[gh2010]: encode/django-rest-framework#2010
[gh2278]: encode/django-rest-framework#2278
[gh2283]: encode/django-rest-framework#2283
[gh2287]: encode/django-rest-framework#2287
[gh2311]: encode/django-rest-framework#2311
[gh2315]: encode/django-rest-framework#2315
[gh2317]: encode/django-rest-framework#2317
[gh2319]: encode/django-rest-framework#2319
[gh2327]: encode/django-rest-framework#2327
[gh2330]: encode/django-rest-framework#2330
[gh2331]: encode/django-rest-framework#2331
[gh2340]: encode/django-rest-framework#2340
[gh2342]: encode/django-rest-framework#2342
[gh2351]: encode/django-rest-framework#2351
[gh2355]: encode/django-rest-framework#2355
[gh2369]: encode/django-rest-framework#2369
[gh2386]: encode/django-rest-framework#2386
<!-- 3.0.4 -->
[gh2425]: encode/django-rest-framework#2425
[gh2446]: encode/django-rest-framework#2446
[gh2441]: encode/django-rest-framework#2441
[gh2451]: encode/django-rest-framework#2451
[gh2106]: encode/django-rest-framework#2106
[gh2448]: encode/django-rest-framework#2448
[gh2433]: encode/django-rest-framework#2433
[gh2432]: encode/django-rest-framework#2432
[gh2434]: encode/django-rest-framework#2434
[gh2430]: encode/django-rest-framework#2430
[gh2421]: encode/django-rest-framework#2421
[gh2410]: encode/django-rest-framework#2410
[gh2408]: encode/django-rest-framework#2408
[gh2401]: encode/django-rest-framework#2401
[gh2400]: encode/django-rest-framework#2400
[gh2399]: encode/django-rest-framework#2399
[gh2388]: encode/django-rest-framework#2388
[gh2360]: encode/django-rest-framework#2360
<!-- 3.0.5 -->
[gh1850]: encode/django-rest-framework#1850
[gh2108]: encode/django-rest-framework#2108
[gh2475]: encode/django-rest-framework#2475
[gh2479]: encode/django-rest-framework#2479
[gh2486]: encode/django-rest-framework#2486
[gh2492]: encode/django-rest-framework#2492
[gh2518]: encode/django-rest-framework#2518
[gh2519]: encode/django-rest-framework#2519
[gh2524]: encode/django-rest-framework#2524
[gh2530]: encode/django-rest-framework#2530
<!-- 3.1.1 -->
[gh2691]: encode/django-rest-framework#2691
[gh2685]: encode/django-rest-framework#2685
[gh2591]: encode/django-rest-framework#2591
[gh2678]: encode/django-rest-framework#2678
[gh2667]: encode/django-rest-framework#2667
[gh2700]: encode/django-rest-framework#2700
[gh2645]: encode/django-rest-framework#2645
[gh2640]: encode/django-rest-framework#2640
[gh2637]: encode/django-rest-framework#2637
[gh2641]: encode/django-rest-framework#2641
[gh2631]: encode/django-rest-framework#2631
[gh2741]: encode/django-rest-framework#2641
[gh2743]: encode/django-rest-framework#2643
<!-- 3.1.2 -->
[gh2656]: encode/django-rest-framework#2656
[gh2687]: encode/django-rest-framework#2687
[gh2869]: encode/django-rest-framework#2869
[gh2764]: encode/django-rest-framework#2764
[gh2763]: encode/django-rest-framework#2763
[gh2757]: encode/django-rest-framework#2757
[gh2630]: encode/django-rest-framework#2630
[gh2724]: encode/django-rest-framework#2724
[gh2711]: encode/django-rest-framework#2711
[gh2745]: encode/django-rest-framework#2745
[gh2754]: encode/django-rest-framework#2754
[gh2762]: encode/django-rest-framework#2762
[gh2798]: encode/django-rest-framework#2798
[gh2807]: encode/django-rest-framework#2807
[gh2818]: encode/django-rest-framework#2818
[gh2835]: encode/django-rest-framework#2835
[gh2836]: encode/django-rest-framework#2836
[gh2853]: encode/django-rest-framework#2853
[gh2862]: encode/django-rest-framework#2862
[gh2863]: encode/django-rest-framework#2863
[gh2868]: encode/django-rest-framework#2868
[gh2905]: encode/django-rest-framework#2905
<!-- 3.1.3 -->
[gh2481]: encode/django-rest-framework#2481
[gh2989]: encode/django-rest-framework#2989
[gh2788]: encode/django-rest-framework#2788
[gh3000]: encode/django-rest-framework#3000
[gh2993]: encode/django-rest-framework#2993
[gh2894]: encode/django-rest-framework#2894
[gh2981]: encode/django-rest-framework#2981
[gh2811]: encode/django-rest-framework#2811
[gh2975]: encode/django-rest-framework#2975
[gh2839]: encode/django-rest-framework#2839
[gh2940]: encode/django-rest-framework#2940
[gh2887]: encode/django-rest-framework#2887
[gh2034]: encode/django-rest-framework#2034
[gh2933]: encode/django-rest-framework#2933
[gh2948]: encode/django-rest-framework#2948
[gh2947]: encode/django-rest-framework#2947
[gh2952]: encode/django-rest-framework#2952
[gh2747]: encode/django-rest-framework#2747
[gh2618]: encode/django-rest-framework#2618
[gh3008]: encode/django-rest-framework#3008
[gh2695]: encode/django-rest-framework#2695

<!-- 3.2.0 -->
[gh1854]: encode/django-rest-framework#1854
[gh2250]: encode/django-rest-framework#2250
[gh2416]: encode/django-rest-framework#2416
[gh2539]: encode/django-rest-framework#2539
[gh2659]: encode/django-rest-framework#2659
[gh2690]: encode/django-rest-framework#2690
[gh2704]: encode/django-rest-framework#2704
[gh2712]: encode/django-rest-framework#2712
[gh2727]: encode/django-rest-framework#2727
[gh2759]: encode/django-rest-framework#2759
[gh2766]: encode/django-rest-framework#2766
[gh2783]: encode/django-rest-framework#2783
[gh2789]: encode/django-rest-framework#2789
[gh2804]: encode/django-rest-framework#2804
[gh2886]: encode/django-rest-framework#2886
[gh2915]: encode/django-rest-framework#2915
[gh2920]: encode/django-rest-framework#2920
[gh2926]: encode/django-rest-framework#2926
[gh2928]: encode/django-rest-framework#2928
[gh2935]: encode/django-rest-framework#2935
[gh3011]: encode/django-rest-framework#3011
[gh3016]: encode/django-rest-framework#3016
[gh3024]: encode/django-rest-framework#3024
[gh3115]: encode/django-rest-framework#3115
[gh3139]: encode/django-rest-framework#3139
[gh3165]: encode/django-rest-framework#3165
[gh3216]: encode/django-rest-framework#3216
[gh3225]: encode/django-rest-framework#3225

<!-- 3.2.1 -->
[gh3237]: encode/django-rest-framework#3237
[gh3227]: encode/django-rest-framework#3227
[gh3238]: encode/django-rest-framework#3238
[gh3239]: encode/django-rest-framework#3239

<!-- 3.2.2 -->
[gh3254]: encode/django-rest-framework#3254
[gh3258]: encode/django-rest-framework#3258
[gh2776]: encode/django-rest-framework#2776
[gh3261]: encode/django-rest-framework#3261
[gh3260]: encode/django-rest-framework#3260
[gh3241]: encode/django-rest-framework#3241

<!-- 3.2.3 -->
[gh3249]: encode/django-rest-framework#3249
[gh3250]: encode/django-rest-framework#3250
[gh3275]: encode/django-rest-framework#3275
[gh3288]: encode/django-rest-framework#3288
[gh3290]: encode/django-rest-framework#3290
[gh3303]: encode/django-rest-framework#3303
[gh3313]: encode/django-rest-framework#3313
[gh3316]: encode/django-rest-framework#3316
[gh3318]: encode/django-rest-framework#3318
[gh3321]: encode/django-rest-framework#3321

<!-- 3.2.4 -->
[gh2761]: encode/django-rest-framework#2761
[gh3314]: encode/django-rest-framework#3314
[gh3323]: encode/django-rest-framework#3323
[gh3324]: encode/django-rest-framework#3324
[gh3359]: encode/django-rest-framework#3359
[gh3361]: encode/django-rest-framework#3361
[gh3364]: encode/django-rest-framework#3364
[gh3415]: encode/django-rest-framework#3415

<!-- 3.2.5 -->
[gh3550]:encode/django-rest-framework#3550

<!-- 3.3.0 -->
[gh3315]: encode/django-rest-framework#3315
[gh3410]: encode/django-rest-framework#3410
[gh3435]: encode/django-rest-framework#3435
[gh3450]: encode/django-rest-framework#3450
[gh3454]: encode/django-rest-framework#3454
[gh3475]: encode/django-rest-framework#3475
[gh3495]: encode/django-rest-framework#3495
[gh3509]: encode/django-rest-framework#3509
[gh3421]: encode/django-rest-framework#3421
[gh3525]: encode/django-rest-framework#3525
[gh3526]: encode/django-rest-framework#3526
[gh3429]: encode/django-rest-framework#3429
[gh3536]: encode/django-rest-framework#3536

<!-- 3.3.1 -->
[gh3556]: encode/django-rest-framework#3556
[gh3560]: encode/django-rest-framework#3560
[gh3564]: encode/django-rest-framework#3564
[gh3568]: encode/django-rest-framework#3568
[gh3592]: encode/django-rest-framework#3592
[gh3593]: encode/django-rest-framework#3593

<!-- 3.3.2 -->
[gh3228]: encode/django-rest-framework#3228
[gh3252]: encode/django-rest-framework#3252
[gh3513]: encode/django-rest-framework#3513
[gh3534]: encode/django-rest-framework#3534
[gh3578]: encode/django-rest-framework#3578
[gh3596]: encode/django-rest-framework#3596
[gh3597]: encode/django-rest-framework#3597
[gh3600]: encode/django-rest-framework#3600
[gh3626]: encode/django-rest-framework#3626
[gh3628]: encode/django-rest-framework#3628
[gh3631]: encode/django-rest-framework#3631
[gh3634]: encode/django-rest-framework#3634
[gh3635]: encode/django-rest-framework#3635
[gh3654]: encode/django-rest-framework#3654
[gh3655]: encode/django-rest-framework#3655
[gh3656]: encode/django-rest-framework#3656
[gh3662]: encode/django-rest-framework#3662
[gh3668]: encode/django-rest-framework#3668
[gh3672]: encode/django-rest-framework#3672
[gh3677]: encode/django-rest-framework#3677
[gh3679]: encode/django-rest-framework#3679
[gh3684]: encode/django-rest-framework#3684
[gh3687]: encode/django-rest-framework#3687
[gh3701]: encode/django-rest-framework#3701
[gh3705]: encode/django-rest-framework#3705
[gh3714]: encode/django-rest-framework#3714
[gh3718]: encode/django-rest-framework#3718
[gh3723]: encode/django-rest-framework#3723

<!-- 3.3.3 -->
[gh3968]: encode/django-rest-framework#3968
[gh3962]: encode/django-rest-framework#3962
[gh3913]: encode/django-rest-framework#3913
[gh3912]: encode/django-rest-framework#3912
[gh3910]: encode/django-rest-framework#3910
[gh3903]: encode/django-rest-framework#3903
[gh3887]: encode/django-rest-framework#3887
[gh3878]: encode/django-rest-framework#3878
[gh3860]: encode/django-rest-framework#3860
[gh3858]: encode/django-rest-framework#3858
[gh3842]: encode/django-rest-framework#3842
[gh3833]: encode/django-rest-framework#3833
[gh3832]: encode/django-rest-framework#3832
[gh3819]: encode/django-rest-framework#3819
[gh3815]: encode/django-rest-framework#3815
[gh3809]: encode/django-rest-framework#3809
[gh3805]: encode/django-rest-framework#3805
[gh3804]: encode/django-rest-framework#3804
[gh3801]: encode/django-rest-framework#3801
[gh3787]: encode/django-rest-framework#3787
[gh3786]: encode/django-rest-framework#3786
[gh3785]: encode/django-rest-framework#3785
[gh3774]: encode/django-rest-framework#3774
[gh3769]: encode/django-rest-framework#3769
[gh3753]: encode/django-rest-framework#3753
[gh3739]: encode/django-rest-framework#3739
[gh3731]: encode/django-rest-framework#3731
[gh3728]: encode/django-rest-framework#3726
[gh3715]: encode/django-rest-framework#3715
[gh3703]: encode/django-rest-framework#3703
[gh3696]: encode/django-rest-framework#3696
[gh3637]: encode/django-rest-framework#3637
[gh3636]: encode/django-rest-framework#3636
[gh3605]: encode/django-rest-framework#3605
[gh3604]: encode/django-rest-framework#3604

<!-- 3.4.0 -->
[gh2403]: encode/django-rest-framework#2403
[gh2848]: encode/django-rest-framework#2848
[gh2996]: encode/django-rest-framework#2996
[gh3164]: encode/django-rest-framework#3164
[gh3273]: encode/django-rest-framework#3273
[gh3381]: encode/django-rest-framework#3381
[gh3438]: encode/django-rest-framework#3438
[gh3444]: encode/django-rest-framework#3444
[gh3476]: encode/django-rest-framework#3476
[gh3487]: encode/django-rest-framework#3487
[gh3541]: encode/django-rest-framework#3541
[gh3710]: encode/django-rest-framework#3710
[gh3729]: encode/django-rest-framework#3729
[gh3751]: encode/django-rest-framework#3751
[gh3812]: encode/django-rest-framework#3812
[gh3816]: encode/django-rest-framework#3816
[gh3820]: encode/django-rest-framework#3820
[gh3906]: encode/django-rest-framework#3906
[gh3908]: encode/django-rest-framework#3908
[gh3926]: encode/django-rest-framework#3926
[gh3933]: encode/django-rest-framework#3933
[gh3936]: encode/django-rest-framework#3936
[gh3938]: encode/django-rest-framework#3938
[gh3943]: encode/django-rest-framework#3943
[gh3953]: encode/django-rest-framework#3953
[gh3964]: encode/django-rest-framework#3964
[gh3968]: encode/django-rest-framework#3968
[gh3970]: encode/django-rest-framework#3970
[gh3971]: encode/django-rest-framework#3971
[gh3976]: encode/django-rest-framework#3976
[gh3983]: encode/django-rest-framework#3983
[gh3990]: encode/django-rest-framework#3990
[gh4002]: encode/django-rest-framework#4002
[gh4003]: encode/django-rest-framework#4003
[gh4005]: encode/django-rest-framework#4005
[gh4006]: encode/django-rest-framework#4006
[gh4008]: encode/django-rest-framework#4008
[gh4021]: encode/django-rest-framework#4021
[gh4025]: encode/django-rest-framework#4025
[gh4040]: encode/django-rest-framework#4040
[gh4041]: encode/django-rest-framework#4041
[gh4049]: encode/django-rest-framework#4049
[gh4075]: encode/django-rest-framework#4075
[gh4079]: encode/django-rest-framework#4079
[gh4090]: encode/django-rest-framework#4090
[gh4097]: encode/django-rest-framework#4097
[gh4098]: encode/django-rest-framework#4098
[gh4103]: encode/django-rest-framework#4103
[gh4105]: encode/django-rest-framework#4105
[gh4106]: encode/django-rest-framework#4106
[gh4107]: encode/django-rest-framework#4107
[gh4118]: encode/django-rest-framework#4118
[gh4146]: encode/django-rest-framework#4146
[gh4149]: encode/django-rest-framework#4149
[gh4153]: encode/django-rest-framework#4153
[gh4156]: encode/django-rest-framework#4156
[gh4157]: encode/django-rest-framework#4157
[gh4158]: encode/django-rest-framework#4158
[gh4166]: encode/django-rest-framework#4166
[gh4176]: encode/django-rest-framework#4176
[gh4179]: encode/django-rest-framework#4179
[gh4180]: encode/django-rest-framework#4180
[gh4181]: encode/django-rest-framework#4181
[gh4185]: encode/django-rest-framework#4185
[gh4187]: encode/django-rest-framework#4187
[gh4191]: encode/django-rest-framework#4191
[gh4192]: encode/django-rest-framework#4192
[gh4194]: encode/django-rest-framework#4194
[gh4195]: encode/django-rest-framework#4195
[gh4196]: encode/django-rest-framework#4196
[gh4212]: encode/django-rest-framework#4212
[gh4215]: encode/django-rest-framework#4215
[gh4217]: encode/django-rest-framework#4217
[gh4219]: encode/django-rest-framework#4219
[gh4229]: encode/django-rest-framework#4229
[gh4233]: encode/django-rest-framework#4233
[gh4244]: encode/django-rest-framework#4244
[gh4246]: encode/django-rest-framework#4246
[gh4253]: encode/django-rest-framework#4253
[gh4254]: encode/django-rest-framework#4254
[gh4255]: encode/django-rest-framework#4255
[gh4256]: encode/django-rest-framework#4256
[gh4259]: encode/django-rest-framework#4259

<!-- 3.4.1 -->
[gh4323]: encode/django-rest-framework#4323
[gh4268]: encode/django-rest-framework#4268
[gh4321]: encode/django-rest-framework#4321
[gh4308]: encode/django-rest-framework#4308
[gh4305]: encode/django-rest-framework#4305
[gh4316]: encode/django-rest-framework#4316
[gh4294]: encode/django-rest-framework#4294
[gh4293]: encode/django-rest-framework#4293
[gh4315]: encode/django-rest-framework#4315
[gh4314]: encode/django-rest-framework#4314
[gh4289]: encode/django-rest-framework#4289
[gh4265]: encode/django-rest-framework#4265
[gh4285]: encode/django-rest-framework#4285
[gh4287]: encode/django-rest-framework#4287
[gh4313]: encode/django-rest-framework#4313
[gh4281]: encode/django-rest-framework#4281
[gh4299]: encode/django-rest-framework#4299
[gh4307]: encode/django-rest-framework#4307
[gh4302]: encode/django-rest-framework#4302
[gh4303]: encode/django-rest-framework#4303
[gh4298]: encode/django-rest-framework#4298
[gh4291]: encode/django-rest-framework#4291
[gh4270]: encode/django-rest-framework#4270
[gh4272]: encode/django-rest-framework#4272
[gh4273]: encode/django-rest-framework#4273
[gh4288]: encode/django-rest-framework#4288

<!-- 3.4.2 -->
[gh3565]: encode/django-rest-framework#3565
[gh3610]: encode/django-rest-framework#3610
[gh4198]: encode/django-rest-framework#4198
[gh4199]: encode/django-rest-framework#4199
[gh4236]: encode/django-rest-framework#4236
[gh4292]: encode/django-rest-framework#4292
[gh4296]: encode/django-rest-framework#4296
[gh4318]: encode/django-rest-framework#4318
[gh4330]: encode/django-rest-framework#4330
[gh4331]: encode/django-rest-framework#4331
[gh4332]: encode/django-rest-framework#4332
[gh4335]: encode/django-rest-framework#4335
[gh4336]: encode/django-rest-framework#4336
[gh4338]: encode/django-rest-framework#4338
[gh4339]: encode/django-rest-framework#4339
[gh4340]: encode/django-rest-framework#4340
[gh4344]: encode/django-rest-framework#4344
[gh4345]: encode/django-rest-framework#4345
[gh4346]: encode/django-rest-framework#4346
[gh4347]: encode/django-rest-framework#4347
[gh4348]: encode/django-rest-framework#4348
[gh4349]: encode/django-rest-framework#4349
[gh4354]: encode/django-rest-framework#4354
[gh4357]: encode/django-rest-framework#4357
[gh4358]: encode/django-rest-framework#4358
[gh4359]: encode/django-rest-framework#4359

<!-- 3.4.3 -->
[gh4361]: encode/django-rest-framework#4361

<!-- 3.4.4 -->

<!-- 3.4.5 -->
[gh4416]: encode/django-rest-framework#4416
[gh4409]: encode/django-rest-framework#4409
[gh4415]: encode/django-rest-framework#4415
[gh4410]: encode/django-rest-framework#4410
[gh4408]: encode/django-rest-framework#4408
[gh4398]: encode/django-rest-framework#4398
[gh4407]: encode/django-rest-framework#4407
[gh4403]: encode/django-rest-framework#4403
[gh4404]: encode/django-rest-framework#4404
[gh4412]: encode/django-rest-framework#4412

<!-- 3.4.6 -->

<!-- 3.4.7 -->

<!-- 3.5.1 -->

2.4.8

Date: 18 August 2015

  • Repackage 2.4.7 without pyc files.

2.4.7

Date: 18 August 2015

  • Upgrade guardian support to 1.3

2.4.6

2.4.5

Date: 24 March 2015

2.4.4

Date: 3rd November 2014.

  • Security fix: Escape URLs when replacing format= query parameter, as used in dropdown on GET button in browsable API to allow explicit selection of JSON vs HTML output.
  • Maintain ordering of URLs in API root view for DefaultRouter.
  • Fix follow=True in APIRequestFactory
  • Resolve issue with invalid read_only=True, required=True fields being automatically generated by ModelSerializer in some cases.
  • Resolve issue with OPTIONS requests returning incorrect information for views using get_serializer_class to dynamically determine serializer based on request method.

2.4.3

Date: 19th September 2014.

  • Support translatable view docstrings being displayed in the browsable API.
  • Support encoded filename* in raw file uploads with FileUploadParser.
  • Allow routers to support viewsets that don't include any list routes or that don't include any detail routes.
  • Don't render an empty login control in browsable API if login view is not included.
  • CSRF exemption performed in .as_view() to prevent accidental omission if overriding .dispatch().
  • Login on browsable API now displays validation errors.
  • Bugfix: Fix migration in authtoken application.
  • Bugfix: Allow selection of integer keys in nested choices.
  • Bugfix: Return None instead of &#39;None&#39; in CharField with allow_none=True.
  • Bugfix: Ensure custom model fields map to equivelent serializer fields more reliably.
  • Bugfix: DjangoFilterBackend no longer quietly changes queryset ordering.

2.4.2

Date: 3rd September 2014.

  • Bugfix: Fix broken pagination for 2.4.x series.

2.4.1

Date: 1st September 2014.

  • Bugfix: Fix broken login template for browsable API.

2.4.0

Date: 29th August 2014.

Django version requirements: The lowest supported version of Django is now 1.4.2.

South version requirements: This note applies to any users using the optional authtoken application, which includes an associated database migration. You must now either upgrade your south package to version 1.0, or instead use the built-in migration support available with Django 1.7.

  • Added compatibility with Django 1.7's database migration support.
  • New test runner, using py.test.
  • Deprecated .model view attribute in favor of explicit .queryset and .serializer_class attributes. The DEFAULT_MODEL_SERIALIZER_CLASS setting is also deprecated.
  • detail_route and list_route decorators replace action and link.
  • Support customizable view name and description functions, using the VIEW_NAME_FUNCTION and VIEW_DESCRIPTION_FUNCTION settings.
  • Added NUM_PROXIES setting for smarter client IP identification.
  • Added MAX_PAGINATE_BY setting and max_paginate_by generic view attribute.
  • Added Retry-After header to throttled responses, as per RFC 6585. This should now be used in preference to the custom X-Trottle-Wait-Seconds header which will be fully deprecated in 3.0.
  • Added cache attribute to throttles to allow overriding of default cache.
  • Added lookup_value_regex attribute to routers, to allow the URL argument matching to be constrainted by the user.
  • Added allow_none option to CharField.
  • Support Django's standard status_code class attribute on responses.
  • More intuitive behavior on the test client, as client.logout() now also removes any credentials that have been set.
  • Bugfix: ?page_size=0 query parameter now falls back to default page size for view, instead of always turning pagination off.
  • Bugfix: Always uppercase X-Http-Method-Override methods.
  • Bugfix: Copy filter_backends list before returning it, in order to prevent view code from mutating the class attribute itself.
  • Bugfix: Set the .action attribute on viewsets when introspected by OPTIONS for testing permissions on the view.
  • Bugfix: Ensure ValueError raised during deserialization results in a error list rather than a single error. This is now consistent with other validation errors.
  • Bugfix: Fix cache_format typo on throttle classes, was &quot;throtte_%(scope)s_%(ident)s&quot;. Note that this will invalidate existing throttle caches.

2.3.x series

2.3.14

Date: 12th June 2014

  • Security fix: Escape request path when it is include as part of the login and logout links in the browsable API.
  • help_text and verbose_name automatically set for related fields on ModelSerializer.
  • Fix nested serializers linked through a backward foreign key relation.
  • Fix bad links for the BrowsableAPIRenderer with YAMLRenderer.
  • Add UnicodeYAMLRenderer that extends YAMLRenderer with unicode.
  • Fix parse_header argument convertion.
  • Fix mediatype detection under Python 3.
  • Web browseable API now offers blank option on dropdown when the field is not required.
  • APIException representation improved for logging purposes.
  • Allow source="*" within nested serializers.
  • Better support for custom oauth2 provider backends.
  • Fix field validation if it's optional and has no value.
  • Add SEARCH_PARAM and ORDERING_PARAM.
  • Fix APIRequestFactory to support arguments within the url string for GET.
  • Allow three transport modes for access tokens when accessing a protected resource.
  • Fix QueryDict encoding on request objects.
  • Ensure throttle keys do not contain spaces, as those are invalid if using memcached.
  • Support blank_display_value on ChoiceField.

2.3.13

Date: 6th March 2014

  • Django 1.7 Support.
  • Fix default argument when used with serializer relation fields.
  • Display the media type of the content that is being displayed in the browsable API, rather than 'text/html'.
  • Bugfix for urlize template failure when URL regex is matched, but value does not urlparse.
  • Use urandom for token generation.
  • Only use Vary: Accept when more than one renderer exists.

2.3.12

Date: 15th January 2014

  • Security fix: OrderingField now only allows ordering on readable serializer fields, or on fields explicitly specified using ordering_fields. This prevents users being able to order by fields that are not visible in the API, and exploiting the ordering of sensitive data such as password hashes.
  • Bugfix: write_only = True fields now display in the browsable API.

2.3.11

Date: 14th January 2014

  • Added write_only serializer field argument.
  • Added write_only_fields option to ModelSerializer classes.
  • JSON renderer now deals with objects that implement a dict-like interface.
  • Fix compatiblity with newer versions of django-oauth-plus.
  • Bugfix: Refine behavior that calls model manager all() across nested serializer relationships, preventing erronous behavior with some non-ORM objects, and preventing unneccessary queryset re-evaluations.
  • Bugfix: Allow defaults on BooleanFields to be properly honored when values are not supplied.
  • Bugfix: Prevent double-escaping of non-latin1 URL query params when appending format=json params.

2.3.10

Date: 6th December 2013

  • Add in choices information for ChoiceFields in response to OPTIONS requests.
  • Added pre_delete() and post_delete() method hooks.
  • Added status code category helper functions.
  • Bugfix: Partial updates which erronously set a related field to None now correctly fail validation instead of raising an exception.
  • Bugfix: Responses without any content no longer include an HTTP &#39;Content-Type&#39; header.
  • Bugfix: Correctly handle validation errors in PUT-as-create case, responding with 400.

2.3.9

Date: 15th November 2013

  • Fix Django 1.6 exception API compatibility issue caused by ValidationError.
  • Include errors in HTML forms in browsable API.
  • Added JSON renderer support for numpy scalars.
  • Added transform_&lt;fieldname&gt; hooks on serializers for easily modifying field output.
  • Added get_context hook in BrowsableAPIRenderer.
  • Allow serializers to be passed files but no data.
  • HTMLFormRenderer now renders serializers directly to HTML without needing to create an intermediate form object.
  • Added get_filter_backends hook.
  • Added queryset aggregates to allowed fields in OrderingFilter.
  • Bugfix: Fix decimal suppoprt with YAMLRenderer.
  • Bugfix: Fix submission of unicode in browsable API through raw data form.

2.3.8

Date: 11th September 2013

  • Added DjangoObjectPermissions, and DjangoObjectPermissionsFilter.
  • Support customizable exception handling, using the EXCEPTION_HANDLER setting.
  • Support customizable view name and description functions, using the VIEW_NAME_FUNCTION and VIEW_DESCRIPTION_FUNCTION settings.
  • Added MAX_PAGINATE_BY setting and max_paginate_by generic view attribute.
  • Added cache attribute to throttles to allow overriding of default cache.
  • 'Raw data' tab in browsable API now contains pre-populated data.
  • 'Raw data' and 'HTML form' tab preference in browseable API now saved between page views.
  • Bugfix: required=True argument fixed for boolean serializer fields.
  • Bugfix: client.force_authenticate(None) should also clear session info if it exists.
  • Bugfix: Client sending empty string instead of file now clears FileField.
  • Bugfix: Empty values on ChoiceFields with required=False now consistently return None.
  • Bugfix: Clients setting page_size=0 now simply returns the default page size, instead of disabling pagination. [*]

[*] Note that the change in page_size=0 behaviour fixes what is considered to be a bug in how clients can effect the pagination size. However if you were relying on this behavior you will need to add the following mixin to your list views in order to preserve the existing behavior.

class DisablePaginationMixin(object):
def get_paginate_by(self, queryset=None):
if self.request.QUERY_PARAMS[self.paginate_by_param] == '0':
return None
return super(DisablePaginationMixin, self).get_paginate_by(queryset)

2.3.7

Date: 16th August 2013

  • Added APITestClient, APIRequestFactory and APITestCase etc...
  • Refactor SessionAuthentication to allow esier override for CSRF exemption.
  • Remove 'Hold down "Control" message from help_text' widget messaging when not appropriate.
  • Added admin configuration for auth tokens.
  • Bugfix: AnonRateThrottle fixed to not throttle authenticated users.
  • Bugfix: Don't set X-Throttle-Wait-Seconds when throttle does not have wait value.
  • Bugfix: Fixed PATCH button title in browsable API.
  • Bugfix: Fix issue with OAuth2 provider naive datetimes.

2.3.6

Date: 27th June 2013

  • Added trailing_slash option to routers.
  • Include support for HttpStreamingResponse.
  • Support wider range of default serializer validation when used with custom model fields.
  • UTF-8 Support for browsable API descriptions.
  • OAuth2 provider uses timezone aware datetimes when supported.
  • Bugfix: Return error correctly when OAuth non-existent consumer occurs.
  • Bugfix: Allow FileUploadParser to correctly filename if provided as URL kwarg.
  • Bugfix: Fix ScopedRateThrottle.

2.3.5

Date: 3rd June 2013

  • Added get_url hook to HyperlinkedIdentityField.
  • Serializer field default argument may be a callable.
  • action decorator now accepts a methods argument.
  • Bugfix: request.user should be still be accessible in renderer context if authentication fails.
  • Bugfix: The lookup_field option on HyperlinkedIdentityField should apply by default to the url field on the serializer.
  • Bugfix: HyperlinkedIdentityField should continue to support pk_url_kwarg, slug_url_kwarg, slug_field, in a pending deprecation state.
  • Bugfix: Ensure we always return 404 instead of 500 if a lookup field cannot be converted to the correct lookup type. (Eg non-numeric AutoInteger pk lookup)

2.3.4

Date: 24th May 2013

  • Serializer fields now support label and help_text.
  • Added UnicodeJSONRenderer.
  • OPTIONS requests now return metadata about fields for POST and PUT requests.
  • Bugfix: charset now properly included in Content-Type of responses.
  • Bugfix: Blank choice now added in browsable API on nullable relationships.
  • Bugfix: Many to many relationships with through tables are now read-only.
  • Bugfix: Serializer fields now respect model field args such as max_length.
  • Bugfix: SlugField now performs slug validation.
  • Bugfix: Lazy-translatable strings now properly serialized.
  • Bugfix: Browsable API now supports bootswatch styles properly.
  • Bugfix: HyperlinkedIdentityField now uses lookup_field kwarg.

Note: Responses now correctly include an appropriate charset on the Content-Type header. For example: application/json; charset=utf-8. If you have tests that check the content type of responses, you may need to update these accordingly.

2.3.3

Date: 16th May 2013

  • Added SearchFilter
  • Added OrderingFilter
  • Added GenericViewSet
  • Bugfix: Multiple action and link methods now allowed on viewsets.
  • Bugfix: Fix API Root view issue with DjangoModelPermissions

2.3.2

Date: 8th May 2013

  • Bugfix: Fix TIME_FORMAT, DATETIME_FORMAT and DATE_FORMAT settings.
  • Bugfix: Fix DjangoFilterBackend issue, failing when used on view with queryset attribute.

2.3.1

Date: 7th May 2013

  • Bugfix: Fix breadcrumb rendering issue.

2.3.0

Date: 7th May 2013

  • ViewSets and Routers.
  • ModelSerializers support reverse relations in 'fields' option.
  • HyperLinkedModelSerializers support 'id' field in 'fields' option.
  • Cleaner generic views.
  • Support for multiple filter classes.
  • FileUploadParser support for raw file uploads.
  • DecimalField support.
  • Made Login template easier to restyle.
  • Bugfix: Fix issue with depth>1 on ModelSerializer.

Note: See the 2.3 announcement for full details.

2.2.x series

2.2.7

Date: 17th April 2013

  • Loud failure when view does not return a Response or HttpResponse.
  • Bugfix: Fix for Django 1.3 compatibility.
  • Bugfix: Allow overridden get_object() to work correctly.

2.2.6

Date: 4th April 2013

  • OAuth2 authentication no longer requires unnecessary URL parameters in addition to the token.
  • URL hyperlinking in browsable API now handles more cases correctly.
  • Long HTTP headers in browsable API are broken in multiple lines when possible.
  • Bugfix: Fix regression with DjangoFilterBackend not worthing correctly with single object views.
  • Bugfix: OAuth should fail hard when invalid token used.
  • Bugfix: Fix serializer potentially returning None object for models that define __bool__ or __len__.

2.2.5

Date: 26th March 2013

  • Serializer support for bulk create and bulk update operations.
  • Regression fix: Date and time fields return date/time objects by default. Fixes regressions caused by 2.2.2. See 743 for more details.
  • Bugfix: Fix 500 error is OAuth not attempted with OAuthAuthentication class installed.
  • Serializer.save() now supports arbitrary keyword args which are passed through to the object .save() method. Mixins use force_insert and force_update where appropriate, resulting in one less database query.

2.2.4

Date: 13th March 2013

  • OAuth 2 support.
  • OAuth 1.0a support.
  • Support X-HTTP-Method-Override header.
  • Filtering backends are now applied to the querysets for object lookups as well as lists. (Eg you can use a filtering backend to control which objects should 404)
  • Deal with error data nicely when deserializing lists of objects.
  • Extra override hook to configure DjangoModelPermissions for unauthenticated users.
  • Bugfix: Fix regression which caused extra database query on paginated list views.
  • Bugfix: Fix pk relationship bug for some types of 1-to-1 relations.
  • Bugfix: Workaround for Django bug causing case where Authtoken could be registered for cascade delete from User even if not installed.

2.2.3

Date: 7th March 2013

  • Bugfix: Fix None values for for DateField, DateTimeField and TimeField.

2.2.2

Date: 6th March 2013

  • Support for custom input and output formats for DateField, DateTimeField and TimeField.
  • Cleanup: Request authentication is no longer lazily evaluated, instead authentication is always run, which results in more consistent, obvious behavior. Eg. Supplying bad auth credentials will now always return an error response, even if no permissions are set on the view.
  • Bugfix for serializer data being uncacheable with pickle protocol 0.
  • Bugfixes for model field validation edge-cases.
  • Bugfix for authtoken migration while using a custom user model and south.

2.2.1

Date: 22nd Feb 2013

  • Security fix: Use defusedxml package to address XML parsing vulnerabilities.
  • Raw data tab added to browsable API. (Eg. Allow for JSON input.)
  • Added TimeField.
  • Serializer fields can be mapped to any method that takes no args, or only takes kwargs which have defaults.
  • Unicode support for view names/descriptions in browsable API.
  • Bugfix: request.DATA should return an empty QueryDict with no data, not None.
  • Bugfix: Remove unneeded field validation, which caused extra queries.

Security note: Following the disclosure of security vulnerabilities in Python's XML parsing libraries, use of the XMLParser class now requires the defusedxml package to be installed.

The security vulnerabilities only affect APIs which use the XMLParser class, by enabling it in any views, or by having it set in the DEFAULT_PARSER_CLASSES setting. Note that the XMLParser class is not enabled by default, so this change should affect a minority of users.

2.2.0

Date: 13th Feb 2013

  • Python 3 support.
  • Added a post_save() hook to the generic views.
  • Allow serializers to handle dicts as well as objects.
  • Deprecate ManyRelatedField() syntax in favor of RelatedField(many=True)
  • Deprecate null=True on relations in favor of required=False.
  • Deprecate blank=True on CharFields, just use required=False.
  • Deprecate optional obj argument in permissions checks in favor of has_object_permission.
  • Deprecate implicit hyperlinked relations behavior.
  • Bugfix: Fix broken DjangoModelPermissions.
  • Bugfix: Allow serializer output to be cached.
  • Bugfix: Fix styling on browsable API login.
  • Bugfix: Fix issue with deserializing empty to-many relations.
  • Bugfix: Ensure model field validation is still applied for ModelSerializer subclasses with an custom .restore_object() method.

Note: See the 2.2 announcement for full details.

2.1.x series

2.1.17

Date: 26th Jan 2013

  • Support proper 401 Unauthorized responses where appropriate, instead of always using 403 Forbidden.
  • Support json encoding of timedelta objects.
  • format_suffix_patterns() now supports include style URL patterns.
  • Bugfix: Fix issues with custom pagination serializers.
  • Bugfix: Nested serializers now accept source=&#39;*&#39; argument.
  • Bugfix: Return proper validation errors when incorrect types supplied for relational fields.
  • Bugfix: Support nullable FKs with SlugRelatedField.
  • Bugfix: Don't call custom validation methods if the field has an error.

Note: If the primary authentication class is TokenAuthentication or BasicAuthentication, a view will now correctly return 401 responses to unauthenticated access, with an appropriate WWW-Authenticate header, instead of 403 responses.

2.1.16

Date: 14th Jan 2013

  • Deprecate django.utils.simplejson in favor of Python 2.6's built-in json module.
  • Bugfix: auto_now, auto_now_add and other editable=False fields now default to read-only.
  • Bugfix: PK fields now only default to read-only if they are an AutoField or if editable=False.
  • Bugfix: Validation errors instead of exceptions when serializers receive incorrect types.
  • Bugfix: Validation errors instead of exceptions when related fields receive incorrect types.
  • Bugfix: Handle ObjectDoesNotExist exception when serializing null reverse one-to-one

Note: Prior to 2.1.16, The Decimals would render in JSON using floating point if simplejson was installed, but otherwise render using string notation. Now that use of simplejson has been deprecated, Decimals will consistently render using string notation. See 582 for more details.

2.1.15

Date: 3rd Jan 2013

  • Added PATCH support.
  • Added RetrieveUpdateAPIView.
  • Remove unused internal save_m2m flag on ModelSerializer.save().
  • Tweak behavior of hyperlinked fields with an explicit format suffix.
  • Relation changes are now persisted in .save() instead of in .restore_object().
  • Bugfix: Fix issue with FileField raising exception instead of validation error when files=None.
  • Bugfix: Partial updates should not set default values if field is not included.

2.1.14

Date: 31st Dec 2012

  • Bugfix: ModelSerializers now include reverse FK fields on creation.
  • Bugfix: Model fields with blank=True are now required=False by default.
  • Bugfix: Nested serializers now support nullable relationships.

Note: From 2.1.14 onwards, relational fields move out of the fields.py module and into the new relations.py module, in order to separate them from regular data type fields, such as CharField and IntegerField.

This change will not affect user code, so long as it's following the recommended import style of from rest_framework import serializers and referring to fields using the style serializers.PrimaryKeyRelatedField.

2.1.13

Date: 28th Dec 2012

  • Support configurable STATICFILES_STORAGE storage.
  • Bugfix: Related fields now respect the required flag, and may be required=False.

2.1.12

Date: 21st Dec 2012

  • Bugfix: Fix bug that could occur using ChoiceField.
  • Bugfix: Fix exception in browsable API on DELETE.
  • Bugfix: Fix issue where pk was was being set to a string if set by URL kwarg.

2.1.11

Date: 17th Dec 2012

  • Bugfix: Fix issue with M2M fields in browsable API.

2.1.10

Date: 17th Dec 2012

  • Bugfix: Ensure read-only fields don't have model validation applied.
  • Bugfix: Fix hyperlinked fields in paginated results.

2.1.9

Date: 11th Dec 2012

  • Bugfix: Fix broken nested serialization.
  • Bugfix: Fix Meta.fields only working as tuple not as list.
  • Bugfix: Edge case if unnecessarily specifying required=False on read only field.

2.1.8

Date: 8th Dec 2012

  • Fix for creating nullable Foreign Keys with &#39;&#39; as well as None.
  • Added null=&lt;bool&gt; related field option.

2.1.7

Date: 7th Dec 2012

  • Serializers now properly support nullable Foreign Keys.
  • Serializer validation now includes model field validation, such as uniqueness constraints.
  • Support 'true' and 'false' string values for BooleanField.
  • Added pickle support for serialized data.
  • Support source=&#39;dotted.notation&#39; style for nested serializers.
  • Make Request.user settable.
  • Bugfix: Fix RegexField to work with BrowsableAPIRenderer.

2.1.6

Date: 23rd Nov 2012

  • Bugfix: Unfix DjangoModelPermissions. (I am a doofus.)

2.1.5

Date: 23rd Nov 2012

  • Bugfix: Fix DjangoModelPermissions.

2.1.4

Date: 22nd Nov 2012

  • Support for partial updates with serializers.
  • Added RegexField.
  • Added SerializerMethodField.
  • Serializer performance improvements.
  • Added obtain_token_view to get tokens when using TokenAuthentication.
  • Bugfix: Django 1.5 configurable user support for TokenAuthentication.

2.1.3

Date: 16th Nov 2012

  • Added FileField and ImageField. For use with MultiPartParser.
  • Added URLField and SlugField.
  • Support for read_only_fields on ModelSerializer classes.
  • Support for clients overriding the pagination page sizes. Use the PAGINATE_BY_PARAM setting or set the paginate_by_param attribute on a generic view.
  • 201 Responses now return a 'Location' header.
  • Bugfix: Serializer fields now respect max_length.

2.1.2

Date: 9th Nov 2012

  • Filtering support.
  • Bugfix: Support creation of objects with reverse M2M relations.

2.1.1

Date: 7th Nov 2012

  • Support use of HTML exception templates. Eg. 403.html
  • Hyperlinked fields take optional slug_field, slug_url_kwarg and pk_url_kwarg arguments.
  • Bugfix: Deal with optional trailing slashes properly when generating breadcrumbs.
  • Bugfix: Make textareas same width as other fields in browsable API.
  • Private API change: .get_serializer now uses same instance and data ordering as serializer initialization.

2.1.0

Date: 5th Nov 2012

  • Serializer instance and data keyword args have their position swapped.
  • queryset argument is now optional on writable model fields.
  • Hyperlinked related fields optionally take slug_field and slug_url_kwarg arguments.
  • Support Django's cache framework.
  • Minor field improvements. (Don't stringify dicts, more robust many-pk fields.)
  • Bugfix: Support choice field in Browsable API.
  • Bugfix: Related fields with read_only=True do not require a queryset argument.

API-incompatible changes: Please read this thread regarding the instance and data keyword args before updating to 2.1.0.

2.0.x series

2.0.2

Date: 2nd Nov 2012

  • Fix issues with pk related fields in the browsable API.

2.0.1

Date: 1st Nov 2012

  • Add support for relational fields in the browsable API.
  • Added SlugRelatedField and ManySlugRelatedField.
  • If PUT creates an instance return '201 Created', instead of '200 OK'.

2.0.0

Date: 30th Oct 2012

  • Fix all of the things. (Well, almost.)
  • For more information please see the 2.0 announcement.

0.4.x series

0.4.0

  • Supports Django 1.5.
  • Fixes issues with 'HEAD' method.
  • Allow views to specify template used by TemplateRenderer
  • More consistent error responses
  • Some serializer fixes
  • Fix internet explorer ajax behavior
  • Minor xml and yaml fixes
  • Improve setup (e.g. use staticfiles, not the defunct ADMIN_MEDIA_PREFIX)
  • Sensible absolute URL generation, not using hacky set_script_prefix

0.3.x series

0.3.3

  • Added DjangoModelPermissions class to support django.contrib.auth style permissions.
  • Use staticfiles for css files.
    • Easier to override. Won't conflict with customized admin styles (e.g. grappelli)
  • Templates are now nicely namespaced.
    • Allows easier overriding.
  • Drop implied 'pk' filter if last arg in urlconf is unnamed.
    • Too magical. Explicit is better than implicit.
  • Saner template variable auto-escaping.
  • Tidier setup.py
  • Updated for URLObject 2.0
  • Bugfixes:
    • Bug with PerUserThrottling when user contains unicode chars.

0.3.2

  • Bugfixes:
    • Fix 403 for POST and PUT from the UI with UserLoggedInAuthentication (115)
    • serialize_model method in serializer.py may cause wrong value (73)
    • Fix Error when clicking OPTIONS button (146)
    • And many other fixes
  • Remove short status codes
    • Zen of Python: "There should be one-- and preferably only one --obvious way to do it."
  • get_name, get_description become methods on the view - makes them overridable.
  • Improved model mixin API - Hooks for build_query, get_instance_data, get_model, get_queryset, get_ordering

0.3.1

  • [not documented]

0.3.0

  • JSONP Support
  • Bugfixes, including support for latest markdown release

0.2.x series

0.2.4

  • Fix broken IsAdminUser permission.
  • OPTIONS support.
  • XMLParser.
  • Drop mentions of Blog, BitBucket.

0.2.3

  • Fix some throttling bugs.
  • X-Throttle header on throttling.
  • Support for nesting resources on related models.

0.2.2

  • Throttling support complete.

0.2.1

  • Couple of simple bugfixes over 0.2.0

0.2.0

  • Big refactoring changes since 0.1.0, ask on the discussion group if anything isn't clear.
    The public API has been massively cleaned up. Expect it to be fairly stable from here on in.
  • Resource becomes decoupled into View and Resource, your views should now inherit from View, not Resource.
  • The handler functions on views .get() .put() .post() etc, no longer have the content and auth args.
    Use self.CONTENT inside a view to access the deserialized, validated content.
    Use self.user inside a view to access the authenticated user.
  • allowed_methods and anon_allowed_methods are now defunct. if a method is defined, it's available.
    The permissions attribute on a View is now used to provide generic permissions checking.
    Use permission classes such as FullAnonAccess, IsAuthenticated or IsUserOrIsAnonReadOnly to set the permissions.
  • The authenticators class becomes authentication. Class names change to Authentication.
  • The emitters class becomes renderers. Class names change to Renderers.
  • ResponseException becomes ErrorResponse.
  • The mixin classes have been nicely refactored, the basic mixins are now RequestMixin, ResponseMixin, AuthMixin, and ResourceMixin
    You can reuse these mixin classes individually without using the View class.

0.1.x series

0.1.1

  • Final build before pulling in all the refactoring changes for 0.2, in case anyone needs to hang on to 0.1.

0.1.0

  • Initial release.

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

Happy merging! 🤖

@wooyek wooyek merged commit c59ace4 into master Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants