- 31 Oct, 2012 4 commits
-
-
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')
Stephan Groß committed -
Stephan Groß committed
-
Stephan Groß committed
-
Fixing tutorials
Tom Christie committed
-
- 30 Oct, 2012 24 commits
-
-
add missing imports Browsable API seems to be working fine with FBV's (2.0.0) removing snippets from the URI doesn't make sense remain consistent in using SnippetDetail
Pavel Savchenko committed -
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Conflicts: .gitignore .travis.yml AUTHORS README.rst djangorestframework/mixins.py djangorestframework/renderers.py djangorestframework/resources.py djangorestframework/serializer.py djangorestframework/templates/djangorestframework/base.html djangorestframework/templates/djangorestframework/login.html djangorestframework/templatetags/add_query_param.py djangorestframework/tests/accept.py djangorestframework/tests/authentication.py djangorestframework/tests/content.py djangorestframework/tests/reverse.py djangorestframework/tests/serializer.py djangorestframework/views.py docs/examples.rst docs/examples/blogpost.rst docs/examples/modelviews.rst docs/examples/objectstore.rst docs/examples/permissions.rst docs/examples/pygments.rst docs/examples/views.rst docs/howto/alternativeframeworks.rst docs/howto/mixin.rst docs/howto/reverse.rst docs/howto/usingurllib2.rst docs/index.rst docs/topics/release-notes.md examples/sandbox/views.py rest_framework/__init__.py rest_framework/compat.py rest_framework/utils/breadcrumbs.py setup.py
Tom Christie committed -
Tom Christie committed
-
fix ModelSerializer useage
Tom Christie committed -
Tom Christie committed
-
Stephan Groß committed
-
Stephan Groß committed
-
Stephan Groß committed
-
Stephan Groß committed
-
Stephan Groß committed
-
cause of: from snippets.models import Snippet
Stephan Groß committed -
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Thanks to @Roarster.
Tom Christie committed -
Tom Christie committed
-
Tom Christie committed
-
Writable related fields should return a model instance from .from_native...
Tom Christie committed -
Tom Christie committed
-
Null is true model fields
Tom Christie committed -
Fix some typos.
Tom Christie committed
-
- 29 Oct, 2012 12 commits
-
-
Marko Tibold committed
-
Marko Tibold committed
-
Marko Tibold committed
-
Tom Christie committed
-
Merge branch 'restframework2' of https://github.com/tomchristie/django-rest-framework into restframework2
Tom Christie committed -
Tom Christie committed
-
Tom Christie committed
-
Test put as create
Tom Christie committed -
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-