| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-01-04 | Fix a typo | Paul Melnikow | |
| 2014-01-04 | Router: Do not automatically adjust lookup_regex when trailing_slash is True | Paul Melnikow | |
| BREAKING CHANGE When trailing_slash is set to True, the router no longer will adjust the lookup regex to allow it to include periods. To simulate the old behavior, the programmer should specify `lookup_regex = '[^/]+'` on the viewset. https://github.com/tomchristie/django-rest-framework/pull/1328#issuecomment-31517099 | |||
| 2014-01-04 | Allow viewset to specify lookup value regex for routing | Paul Melnikow | |
| This patch allows a viewset to define a pattern for its lookup field, which the router will honor. Without this patch, any characters are allowed in the lookup field, and overriding this behavior requires subclassing router and copying and pasting the implementation of get_lookup_regex. It's possible it would be better to remove this functionality from the routers and simply expose a parameter to get_lookup_regex which allows overriding the lookup_regex. That way the viewset config logic could be in the a subclass, which could invoke the super method directly. I'm using this now for PostgreSQL UUID fields using https://github.com/dcramer/django-uuidfield . Without this patch, that field passes the lookup string to the database driver, which raises a DataError to complain about the invalid UUID. It's possible the field ought to signal this error in a different way, which could obviate the need to specify a pattern. | |||
| 2013-12-23 | Merge branch 'bennbollay-patch-1' into 2.4.0 | Tom Christie | |
| Conflicts: .travis.yml docs/api-guide/routers.md rest_framework/compat.py tox.ini | |||
| 2013-12-23 | Merge branch 'patch-1' of git://github.com/bennbollay/django-rest-framework ↵ | Tom Christie | |
| into bennbollay-patch-1 | |||
| 2013-12-23 | Back out permissions example change in favor of easier to follow example | Tom Christie | |
| 2013-12-23 | Merge pull request #1315 from amatellanes/master | Tom Christie | |
| Simplified some examples in tutorial | |||
| 2013-12-23 | Simplified some examples in tutorial | amatellanes | |
| 2013-12-23 | Merge remote-tracking branch 'upstream/master' | amatellanes | |
| 2013-12-23 | Revert "Simplified some examples in tutorial" | amatellanes | |
| This reverts commit d6806340e54408858da4b2dc991be99edd65df76. | |||
| 2013-12-23 | Simplified some examples in tutorial | amatellanes | |
| 2013-12-22 | Change the page title to prioritize page content | bennbollay | |
| When many tab's are open (which is necessary for DRF's documentation), it becomes impossible to determine which tab contains which pieces of documentation. That they are all related is obvious by the use of a common icon, just not the specific page each tab is loaded to. This change inverts the order of the title to maintain as much useful context as possible on the tabbar. | |||
| 2013-12-22 | Merge pull request #1312 from amatellanes/master | Tom Christie | |
| Simplified some functions in permissions.py | |||
| 2013-12-22 | Simplified some functions | amatellanes | |
| 2013-12-21 | Merge pull request #1309 from lukaszb/errors-for-renamed-fields | Tom Christie | |
| Should it be that way? | |||
| 2013-12-21 | Additional test for 'source' behaviour. Refs #1302 | Tom Christie | |
| 2013-12-21 | Less brittle through relationship testing. Closes #1292. | Tom Christie | |
| 2013-12-21 | Added example of using APIException class. Closes #1300 | Tom Christie | |
| 2013-12-21 | Docs tweaks | Tom Christie | |
| 2013-12-21 | Merge pull request #1310 from ↵ | Tom Christie | |
| vbabiy/adding-djangorestframework-camel-case-to-docs djangorestframework-camel-case in docs | |||
| 2013-12-21 | Added links to djangorestframework-camel-case in the third party | Vitaly Babiy | |
| sections of the docs for both parsers and renderers. | |||
| 2013-12-20 | Should it be that way? | Lukasz Balcerzak | |
| 2013-12-20 | Merge pull request #1308 from lukaszb/missing-custom-validation-method-test | Tom Christie | |
| Added missing custom validation method test | |||
| 2013-12-20 | Added missing custom validation method test | Lukasz Balcerzak | |
| 2013-12-20 | Merge pull request #1307 from lukaszb/test-class-name-duplicated | Tom Christie | |
| Updated test class name to be unique | |||
| 2013-12-20 | Updated test class name to be unique | Lukasz Balcerzak | |
| 2013-12-17 | Add note on compat import in tutorial | Tom Christie | |
| 2013-12-17 | Merge pull request #1301 from linovia/bugfix/tutorial_for_python3 | Tom Christie | |
| Fix tutorial's step 1 for Python 3 | |||
| 2013-12-17 | Use the BytesIO for buffering bytes and import the one from the compat module. | Xavier Ordoquy | |
| 2013-12-16 | Merge branch 'nullbooleanfield_testcase' of ↵ | Tom Christie | |
| git://github.com/dpetzel/django-rest-framework into dpetzel-nullbooleanfield_testcase Conflicts: rest_framework/tests/test_serializer.py | |||
| 2013-12-16 | Merge pull request #1184 from dpetzel/nullbooleanfield_fix | Tom Christie | |
| Fix infered field type for models.NullBooleanField | |||
| 2013-12-16 | Merge branch 'master' of https://github.com/tomchristie/django-rest-framework | Tom Christie | |
| 2013-12-16 | Add CONTRIBUTING.md | Tom Christie | |
| 2013-12-16 | Typo | Tom Christie | |
| 2013-12-16 | Merge pull request #1298 from craigds/fix-nested-serializers-with-renamed-fields | Tom Christie | |
| Fix nested serializers with renamed fields | |||
| 2013-12-16 | Don't import compat.py from authtoken.models. Closes #1297 | Tom Christie | |
| 2013-12-16 | Fix expansion of writable nested serializers where the inner fields have ↵ | Craig de Stigter | |
| source set. | |||
| 2013-12-14 | Update django-oauth-plus version | Tom Christie | |
| 2013-12-14 | Add note on pagination bugfix. Closes #1293. | Tom Christie | |
| 2013-12-13 | Added @philipforget for work on #1232. Thanks :) | Tom Christie | |
| 2013-12-13 | Updated release notes | Tom Christie | |
| 2013-12-13 | Compat fixes for django-oauth-plus versions 2.0-2.2.1 | Tom Christie | |
| 2013-12-13 | Merge branch 'master' of git://github.com/philipforget/django-rest-framework ↵ | Tom Christie | |
| into philipforget-master | |||
| 2013-12-13 | Links to drf-nested-routers | Tom Christie | |
| 2013-12-13 | Add notes on lookup_prefix argument and why it's there even though unused by ↵ | Tom Christie | |
| the default implementations. | |||
| 2013-12-13 | Merge pull request #1281 from alanjds/router-prefix-patch | Tom Christie | |
| 'lookup_prefix' on SimpleRouter.get_lookup_regex, easing code de-duplication | |||
| 2013-12-13 | Update release notes | Tom Christie | |
| 2013-12-13 | Merge pull request #1291 from kevin-brown/issue_1101 | Tom Christie | |
| Fix default values always being False for browsable API | |||
| 2013-12-13 | Fix default values always being False for browsable API | Kevin Brown | |
| This fixes a bug that was introduced in 28ff6fb [1] for the browsable API, specifically with how it handled default values for boolean fields. Previously, it had a global default for boolean fields set to `False`, which was different than the standard None that was used elsewhere. Because this only needed to be done for the browsable API, a fix was put into place that only set the default to `False` when form data was passed into the serializer. This had the unintended side effect of overriding any default set on the boolean field. This fixes #1101 [2] by only overriding the default if the default is `None`, which is the default for all fields. [1]: https://github.com/tomchristie/django-rest-framework/commit/28ff6fb1ec02b7a04c4a0db54885f3735b6dd43f [2]: https://github.com/tomchristie/django-rest-framework/issues/1101 | |||
| 2013-12-13 | Merge branch 'master' into 2.4.0 | Tom Christie | |
| Conflicts: .travis.yml docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/compat.py | |||
