django-rest-framework/rest_framework
Stephan Groß ff7725f05e added support for custom slug field and kwargs
without subclassing HyperlinkedRelatedField and overwriting
slug_url_kwarg and slug_field there is no possibility to use other
fields / arguments. now you can do something like this:

url(r'^users/(?P<username>\w[\w-]*)$', UserInstance.as_view(),
name='user-detail')

class ProjectSerializer(serializers.HyperlinkedModelSerializer):
    created_by =
serializers.HyperlinkedRelatedField(view_name='user-detail',
slug_url_kwargs='username', slug_field='username')
2012-10-31 15:30:01 +01:00
..
authtoken api_key -> auth_token to avoid TastyPie conflict 2012-10-10 09:50:15 +01:00
runtests Push tests into a seperate app namespace 'rest_framework.test' 2012-10-27 18:44:23 +01:00
static/rest_framework Style tweaks 2012-10-29 14:41:33 +00:00
templates/rest_framework Style tweaks 2012-10-29 14:41:33 +00:00
templatetags Pagination support 2012-09-30 17:31:28 +01:00
tests Merge fixes for 'blank=True' fields. Fixes #324, Fixes #325 2012-10-30 11:03:03 +00:00
utils Tweak parsers to take parser_context 2012-10-15 13:27:50 +01:00
__init__.py Change package name: djangorestframework -> rest_framework 2012-09-20 13:06:27 +01:00
authentication.py Explicit CSRF failure message. Fixes #60. 2012-10-15 14:03:36 +01:00
compat.py pep8 2012-10-27 10:33:01 +01:00
decorators.py Style tweaks 2012-10-29 14:41:33 +00:00
exceptions.py Fixes for urls with suffixes 2012-10-29 17:08:38 +00:00
fields.py added support for custom slug field and kwargs 2012-10-31 15:30:01 +01:00
generics.py Fix some typos. 2012-10-30 00:30:52 +01:00
mixins.py Add pre_save hook in generic views 2012-10-25 12:15:31 +01:00
models.py Change package name: djangorestframework -> rest_framework 2012-09-20 13:06:27 +01:00
negotiation.py Fixes for urls with suffixes 2012-10-29 17:08:38 +00:00
pagination.py Make 'results_field' attribute of BasePaginationSerializer public. 2012-10-02 10:40:43 +01:00
parsers.py Added media_type to .parse() - Consistency with renderer API. 2012-10-17 22:39:07 +01:00
permissions.py Add AllowAny class 2012-10-27 20:17:49 +01:00
renderers.py Final docs tweaks for 2.0 2012-10-30 13:59:31 +00:00
request.py pep8 2012-10-27 10:33:01 +01:00
response.py Make sure JSON output in Browseable API is nicely indented 2012-10-10 12:15:18 +01:00
reverse.py Fixes for urls with suffixes 2012-10-29 17:08:38 +00:00
serializers.py Merge fixes for 'blank=True' fields. Fixes #324, Fixes #325 2012-10-30 11:03:03 +00:00
settings.py Add AllowAny permission 2012-10-27 20:04:33 +01:00
status.py Change package name: djangorestframework -> rest_framework 2012-09-20 13:06:27 +01:00
throttling.py Fix some typos. 2012-10-30 00:30:52 +01:00
urlpatterns.py docs, docs, docs, docs, docs, docs, docs 2012-10-19 19:59:55 +01:00
urls.py Change package name: djangorestframework -> rest_framework 2012-09-20 13:06:27 +01:00
views.py Fix some typos. 2012-10-30 00:30:52 +01:00