- 04 Jan, 2014 2 commits
-
-
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
Paul Melnikow committed -
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.
Paul Melnikow committed
-
- 23 Dec, 2013 9 commits
-
-
Conflicts: .travis.yml docs/api-guide/routers.md rest_framework/compat.py tox.ini
Tom Christie committed -
Tom Christie committed
-
Simplified some examples in tutorial
Tom Christie committed -
amatellanes committed
-
amatellanes committed
-
This reverts commit d6806340.
amatellanes committed -
amatellanes committed
-
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.
bennbollay committed
-
- 22 Dec, 2013 2 commits
-
-
Simplified some functions in permissions.py
Tom Christie committed -
amatellanes committed
-
- 21 Dec, 2013 7 commits
-
-
Should it be that way?
Tom Christie committed -
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
djangorestframework-camel-case in docs
Tom Christie committed -
sections of the docs for both parsers and renderers.
Vitaly Babiy committed
-
- 20 Dec, 2013 5 commits
-
-
Lukasz Balcerzak committed
-
Added missing custom validation method test
Tom Christie committed -
Lukasz Balcerzak committed
-
Updated test class name to be unique
Tom Christie committed -
Lukasz Balcerzak committed
-
- 17 Dec, 2013 3 commits
-
-
Tom Christie committed
-
Fix tutorial's step 1 for Python 3
Tom Christie committed -
Xavier Ordoquy committed
-
- 16 Dec, 2013 8 commits
-
-
Merge branch 'nullbooleanfield_testcase' of git://github.com/dpetzel/django-rest-framework into dpetzel-nullbooleanfield_testcase Conflicts: rest_framework/tests/test_serializer.py
Tom Christie committed -
Fix infered field type for models.NullBooleanField
Tom Christie committed -
Tom Christie committed
-
Tom Christie committed
-
Fix nested serializers with renamed fields
Tom Christie committed -
Tom Christie committed
-
Craig de Stigter committed
-
- 14 Dec, 2013 2 commits
-
-
Tom Christie committed
-
Tom Christie committed
-
- 13 Dec, 2013 2 commits
-
-
Tom Christie committed
-
Tom Christie committed
-