aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
AgeCommit message (Collapse)Author
2014-01-04Router: Do not automatically adjust lookup_regex when trailing_slash is TruePaul 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-04Allow viewset to specify lookup value regex for routingPaul 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-23Fuller notes on the 'base_name' argument. Closes #1160.Tom Christie
2013-12-23Added note on view_name in hyperlinked relationships. Closes #1221Tom Christie
2013-12-23Merge branch 'bennbollay-patch-1' into 2.4.0Tom Christie
Conflicts: .travis.yml docs/api-guide/routers.md rest_framework/compat.py tox.ini
2013-12-21Added example of using APIException class. Closes #1300Tom Christie
2013-12-21Docs tweaksTom Christie
2013-12-21Added links to djangorestframework-camel-case in the third partyVitaly Babiy
sections of the docs for both parsers and renderers.
2013-12-13Links to drf-nested-routersTom Christie
2013-12-13Merge branch 'master' into 2.4.0Tom Christie
Conflicts: .travis.yml docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/compat.py
2013-12-13Merge branch 'master' of https://github.com/tomchristie/django-rest-frameworkTom Christie
Conflicts: docs/api-guide/routers.md
2013-12-12third-party package: wq.dbS. Andrew Sheppard
2013-12-13Further docs tweaksTom Christie
2013-12-13Allow NUM_PROXIES=0 and include more docsTom Christie
2013-12-12Add third party packagesTom Christie
2013-12-11Use get_user_model instead of User in Generating Tokens exampleOddBloke
Because that's a better way of doing it.
2013-12-11Add full required imports to Generating Tokens exampleOddBloke
Previously we were missing User and post_save.
2013-12-10Update routers.mdDavid Ray
Reference to ```DefaultRouter``` should be ```SimpleRouter```
2013-12-10Tweak REST condition text.Tom Christie
2013-12-09Added REST Condition to 3rd party permissions packages list.Maxim Kamenkov
2013-12-09Merge pull request #1277 from Ian-Foote/masterTom Christie
Fix typo "Not" -> "Note"
2013-12-09Fix typo "Not" -> "Note"Ian
2013-12-08RelatedField is function of serializer classtaras
2013-12-06Add missing tick markskahnjw
2013-12-06Fix typokahnjw
2013-12-06Add documentation to explain what effect these changes have.kahnjw
2013-12-06Version 2.3.102.3.10Tom Christie
2013-12-05Upgrade JSONP security warning.Tom Christie
2013-12-04fix broken documentation linksDrew Kowalik
2013-12-04Clarify wording, fixes #1133.Tom Christie
2013-12-03Adds pre_delete and post_delete hooks onPablo Recio
2013-12-02Fix TemplateHTMLRenderer exampleStephan Groß
2013-11-27Rephrased documentation changes according to feedback on IRC.Omer Katz
2013-11-27Recommend using Pillow instead of PIL.Omer Katz
2013-11-20Update 'default' explanation. Closes #1239Tom Christie
2013-11-15Use less specfic language in UltaJSON notesTom Christie
2013-11-11Added drf-ujson-renderer to renderers docsJacob Haslehurst
drf-ujson-renderer is a third party renderer that implements JSON renderering using UltraJSON
2013-11-11Typo on api-guide/fields.md and serializers.pyDoğan Çeçen
2013-10-31Updated OAuth2 authentication docs.erkarl
2013-10-25In the API test client example 'data' was not defined. There's also noKit Randel
need to define 'expected' as we can just test against the dict.
2013-10-24Merge pull request #1199 from yamila-moreno/get-filter-backendsTom Christie
Added get_filter_backends method
2013-10-24Added get_filter_backends methodYamila Moreno
2013-10-24Typo on generic-views.mdYamila
2013-10-22Small documentation fixJacek Bzdak
2013-10-22Merge remote-tracking branch 'origin/master'Jacek Bzdak
2013-10-22Explained a bit more about django-filter implementation.Jacek Bzdak
Well, I spent some time trying to gues how djang-filter works, and if this changes would be introduced, I would have saved this time.
2013-10-21Added . Closes #1188.Tom Christie
2013-10-21Remove the detail=None from APIException signatureJesús Espino
The documentation not match with the implementation. The APIException doesn't have detail parameter in the constructor class, actually doesn't have constructor method at all.
2013-10-12Add missing commas in relations.mdÁlvaro Lázaro
2013-10-09Merge pull request #1071 from craigds/field-transform-methodsCarlton Gibson
Feature: add transform_<fieldname> methods to serializers