aboutsummaryrefslogtreecommitdiffstats
path: root/docs
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-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-23Back out permissions example change in favor of easier to follow exampleTom Christie
2013-12-23Simplified some examples in tutorialamatellanes
2013-12-23Revert "Simplified some examples in tutorial"amatellanes
This reverts commit d6806340e54408858da4b2dc991be99edd65df76.
2013-12-23Simplified some examples in tutorialamatellanes
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-17Add note on compat import in tutorialTom Christie
2013-12-17Use the BytesIO for buffering bytes and import the one from the compat module.Xavier Ordoquy
2013-12-16TypoTom Christie
2013-12-14Add note on pagination bugfix. Closes #1293.Tom Christie
2013-12-13Added @philipforget for work on #1232. Thanks :)Tom Christie
2013-12-13Updated release notesTom Christie
2013-12-13Links to drf-nested-routersTom Christie
2013-12-13Update release notesTom 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-13Expanded notes in quickstart. Closes #1127. Closes #1128.Tom Christie
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-10Remove incorrect apostropheTom Christie
2013-12-10Update release notesTom Christie
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-09Update release notesTom Christie
2013-12-09Add notes to contributing docsTom Christie
2013-12-09Add notes to contributing docsTom Christie
2013-12-09Add notes to contributing docsTom Christie
2013-12-09Add notes to contributing docsTom Christie
2013-12-08Merge pull request #1275 from qooleot/masterTom Christie
RelatedField is function of serializer class
2013-12-08Minor grammar fix -- 'team' is singularRustam Lalkaka
2013-12-08RelatedField is function of serializer classtaras
2013-12-06update installation example to work with django 1.6Andy Wilson
looks like django.conf.urls.defaults was deprecated as of django 1.6
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-06Update release-notes.mdTom Christie
2013-12-06Added @chuckharmston for kickass bug squashing in #1272Tom Christie
2013-12-05Upgrade JSONP security warning.Tom Christie