aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
AgeCommit message (Collapse)Author
2013-12-03Merge pull request #1250 from Ian-Foote/choice_fieldTom Christie
Add choices to options metadata for ChoiceField.
2013-12-03Catch errors during parsing and set empty .DATA/.FILES before re-raising.Tom Christie
2013-12-03Adds pre_delete and post_delete hooks onPablo Recio
2013-11-27Updated the assertion message of the ImageField.Omer Katz
2013-11-27Add unittests for ChoiceField metadata.Ian Foote
Rename 'name' to 'display_name'.
2013-11-26Add more context to the ChoiceField metadata.Ian Foote
2013-11-26Add choices to options metadata for ChoiceField.Ian Foote
2013-11-22Remove u from literalsMalcolm Box
2013-11-21Fix issue #1231: JSONEncoder doesn't handle dict-like objectsMalcolm Box
Check for __getitem__ and then attempt to convert to a dict. The check for __getitem__ is there as there's no universal way to check if an object is a mapping type, but this is a likely proxy
2013-11-21Merge pull request #1229 from jgomezb/patch-2Tom Christie
Update urlpatterns.py
2013-11-19Added handling of validation errors in PUT-as-create.Krzysztof Jurewicz
Fixes #1035.
2013-11-18Removed the DynamicSerializerView duplicationXavier Ordoquy
2013-11-18Another fix for nested writable serializers in case of the related_name ↵Xavier Ordoquy
isn’t set on the ForeignKey.
2013-11-17Fixed the nested model serializers in case of the related_name isn’t set.Xavier Ordoquy
2013-11-15add auth param to request client callsPhilip Forget
2013-11-15Version 2.3.92.3.9Tom Christie
2013-11-14pass oauth_timestamp to oauth_providerPhilip Forget
2013-11-14Update urlpatterns.pyjgomezb
Allow numbers in format extension.
2013-11-13Undo version bumpAlex
2013-11-12Bump versionAlex
2013-11-12Merge branch 'master' into allow-aggregate-orderingAlex
2013-11-12Add queryset aggregates to allowed fields in OrderingFilterAlex
2013-11-11Typo on api-guide/fields.md and serializers.pyDoğan Çeçen
2013-11-08Merge pull request #1217 from benpbenp/masterTom Christie
Fix object creation with reverse M2M when related_name unspecified
2013-11-08Fix object creation with reverse M2M when related_name unspecifiedBen Pietravalle
It seems that field.related_query_name() does not return the related_name for reverse M2M relations when related_name is not explicitly set in the M2M field definition. So, change to use obj.get_accessor_name(), where obj is an instance of RelatedObject, as are returned by a model's _meta.get_all_related_many_to_many_objects(), or as in the tuples returned by _meta.get_all_m2m_objects_with_model().
2013-11-08Fixed a regression with ValidationError under Django 1.6Xavier Ordoquy
2013-11-06Drop u'' prefix for python 3.x compatibilityMathieu Pillard
2013-11-05Improve handling of 'empty' values for ChoiceFieldMathieu Pillard
The empty value defaults back to '' (for backwards-compatibility) but is changed automatically to None for ModelSerializers if the `null` property is set on the db field.
2013-10-31Fixed exception handling with YAML and XML parsers.Rob Hudson
2013-10-29minor typoS. Andrew Sheppard
2013-10-24Removed commented-out credits from footer to make django-debug-toolbar work.Jakub Roztočil
The comment, although valid, caused that the Django debug toolbar's injected HTML was partially commented-out and thus the toolbar didn't work as expected.
2013-10-24reworked APIException, pushing some of the status_code and detail management ↵Chris Guethle
up. Also, makes the APIException useful in isolation (defaults to status code 500)
2013-10-24Added get_filter_backends methodYamila Moreno
2013-10-24Merge pull request #1198 from alexanderlukanin13/form-post-unicodeTom Christie
Fixed UnicodeEncodeError when POST JSON via web interface; added test
2013-10-24Update comment in `get_parser_context`.Tom Christie
2013-10-24Fixed UnicodeEncodeError when POST JSON via web interface; added testalexanderlukanin13
2013-10-22Merge pull request #1187 from ross/paginator_def_valTom Christie
paginator should validate page and provide default
2013-10-21remove stray func from testRoss McFarland
2013-10-21retract the default page stuff.Ross McFarland
better way comming in a seperate pr
2013-10-21Use lookup_url_kwarg in presave if requiredTom Christie
2013-10-21Added . Closes #1188.Tom Christie
2013-10-19paginator should validate page and provide defaultRoss McFarland
- use the standard paginator.validate_number method rather strict_postive_int. - support optional paginator method, default_page_number, to get the default page number rather than hard-coding it to 1 - this allows supporting non-integer based pagination which can be an important performance tweak on extermely large datasets or high request loads - relatively thorough unit tests of the changes
2013-10-18This fix results in models.NullBooleanField rendering as a checkbox in the ↵dpetzel
browsable API
2013-10-18add test case around ensuring proper field inference for boolean model field ↵dpetzel
types
2013-10-17Merge pull request #1170 from craigds/write-into-foreignkey-with-sourceTom Christie
fix writing into foreign key with non-null source
2013-10-17Merge pull request #1112 from tamakisquare/issue-1111Tom Christie
Test case and fix for issue 1111
2013-10-17Merge pull request #1172 from brutasse/fix/return-objectTom Christie
Return object in save_object
2013-10-17Fix a docstring to reflect what the method doesBruno Renié
2013-10-17Fix decimal support with YAMLRendererbadaud_t
2013-10-17Fix typo YAMLRendererTestsbadaud_t