Tom Christie
4ab97843e8
Merge pull request #1333 from bodylabs/2.4.0+lookup_regex
...
Let viewsets specify their regex
2014-01-13 07:34:58 -08:00
Tom Christie
a90796c0f0
Track changes that need noting in 2.4 announcement
2014-01-13 09:56:57 +00:00
Yuri Prezument
6e622d644c
CharField - add allow_null argument
2014-01-12 10:53:54 +02:00
Tom Christie
b61cef435e
Merge pull request #1345 from bodylabs/serializers_doc
...
serializers.md: Fix typos
2014-01-10 05:25:21 -08:00
Paul Melnikow
4b8d1b66ab
serializers.md: Fix typos
2014-01-10 08:22:47 -05:00
Yuri Prezument
052e236fde
Fix URL/Slug Field signatures in docs
2014-01-09 18:12:30 +02:00
Tom Christie
78494401c5
Use www.django-rest-framework.org for docs instead of django-rest-framework.org due to issues with naked domains
2014-01-08 15:22:41 +00:00
Tom Christie
2b033d2456
New font in logo
2014-01-07 14:57:00 +00:00
Paul Melnikow
899381575a
Fix a typo
2014-01-04 17:03:01 -05:00
Paul Melnikow
3cd15fb171
Router: Do not automatically adjust lookup_regex when trailing_slash is True
...
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-04 16:57:50 -05:00
Paul Melnikow
a1d7aa8f71
Allow viewset to specify lookup value regex for routing
...
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.
2014-01-04 16:45:03 -05:00
Tom Christie
399e4d9b08
Merge branch 'master' into logo
2014-01-03 13:27:00 +00:00
Tom Christie
442916b964
Link to BrightAPI, and remove ad except from frontpage
2014-01-03 13:24:52 +00:00
Tom Christie
3050f0e82a
Frontpage tweaks
2014-01-03 13:06:41 +00:00
Kevin Brown
0672d6de6e
Fix bugfix note
...
This fixes a bugfix note that was added because of #1293 , which
pointed out that a change in a bugfix [1] broke backwards
compatibility. The bugfix did not work as expected because a
variable was quoted when it should not have been. This removes
the quotes around the variable, which brings back the expected
functionality.
2014-01-02 16:46:57 -05:00
Tom Christie
1f3f2741f5
Happy new year
2014-01-02 09:28:34 +00:00
Tom Christie
75e8724731
Fuller notes on the 'base_name' argument. Closes #1160 .
2013-12-23 14:38:51 +00:00
Tom Christie
d24ea39a4e
Added note on view_name in hyperlinked relationships. Closes #1221
2013-12-23 14:29:22 +00:00
Tom Christie
bed2f08c24
Updated release notes
2013-12-23 11:57:25 +00:00
Tom Christie
52686420f4
Merge branch 'bennbollay-patch-1' into 2.4.0
...
Conflicts:
.travis.yml
docs/api-guide/routers.md
rest_framework/compat.py
tox.ini
2013-12-23 09:48:59 +00:00
Tom Christie
d8a95b4b6d
Back out permissions example change in favor of easier to follow example
2013-12-23 09:12:34 +00:00
amatellanes
2846ddb5d2
Simplified some examples in tutorial
2013-12-23 09:06:03 +01:00
amatellanes
74f1cf6355
Revert "Simplified some examples in tutorial"
...
This reverts commit d6806340e5
.
2013-12-23 08:56:34 +01:00
amatellanes
d6806340e5
Simplified some examples in tutorial
2013-12-23 08:50:46 +01:00
Tom Christie
bc0e994784
Added example of using APIException class. Closes #1300
2013-12-21 21:10:05 +00:00
Tom Christie
1f3ded4559
Docs tweaks
2013-12-21 17:18:25 +00:00
Vitaly Babiy
22343ee117
Added links to djangorestframework-camel-case in the third party
...
sections of the docs for both parsers and renderers.
2013-12-21 07:07:06 -05:00
Tom Christie
02ae1682b5
Add note on compat import in tutorial
2013-12-17 09:45:28 +00:00
Xavier Ordoquy
8026480454
Use the BytesIO for buffering bytes and import the one from the compat module.
2013-12-17 10:30:23 +01:00
Tom Christie
31dd160256
Typo
2013-12-16 11:59:14 +00:00
Tom Christie
6b6b255684
Add note on pagination bugfix. Closes #1293 .
2013-12-14 20:42:58 +00:00
Tom Christie
f78b3187df
Added @philipforget for work on #1232 . Thanks :)
2013-12-13 22:01:19 +00:00
Tom Christie
54d3c6a725
Updated release notes
2013-12-13 21:59:47 +00:00
Tom Christie
39dbea4da4
Links to drf-nested-routers
2013-12-13 20:27:17 +00:00
Tom Christie
87b99d1ac8
Update release notes
2013-12-13 20:17:26 +00:00
Tom Christie
9c41c007af
Merge branch 'master' into 2.4.0
...
Conflicts:
.travis.yml
docs/api-guide/routers.md
docs/topics/release-notes.md
rest_framework/compat.py
2013-12-13 16:32:34 +00:00
Tom Christie
ca244ad614
Expanded notes in quickstart. Closes #1127 . Closes #1128 .
2013-12-13 15:30:59 +00:00
Tom Christie
7e7336db91
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
...
Conflicts:
docs/api-guide/routers.md
2013-12-13 09:04:54 +00:00
S. Andrew Sheppard
73e8536e0d
third-party package: wq.db
2013-12-12 21:45:44 -06:00
Tom Christie
ed931b90ae
Further docs tweaks
2013-12-13 00:11:59 +00:00
Tom Christie
83da4949c0
Allow NUM_PROXIES=0 and include more docs
2013-12-13 00:02:18 +00:00
Tom Christie
df2d9034c2
Add third party packages
2013-12-12 23:10:31 +00:00
OddBloke
4f473f0b9e
Use get_user_model instead of User in Generating Tokens example
...
Because that's a better way of doing it.
2013-12-11 13:56:56 +00:00
OddBloke
5acefd3b17
Add full required imports to Generating Tokens example
...
Previously we were missing User and post_save.
2013-12-11 13:55:54 +00:00
David Ray
7382f8c6ad
Update routers.md
...
Reference to ```DefaultRouter``` should be ```SimpleRouter```
2013-12-10 14:56:07 -05:00
Tom Christie
c09ad1bedc
Remove incorrect apostrophe
2013-12-10 08:53:38 +00:00
Tom Christie
40164fcc62
Update release notes
2013-12-10 08:49:54 +00:00
Tom Christie
785a42cd5a
Tweak REST condition text.
2013-12-10 08:38:43 +00:00
Maxim Kamenkov
9ba7be959c
Added REST Condition to 3rd party permissions packages list.
2013-12-09 20:33:06 +02:00
Tom Christie
b599447b71
Merge pull request #1277 from Ian-Foote/master
...
Fix typo "Not" -> "Note"
2013-12-09 01:54:37 -08:00
Ian
de319f3e28
Fix typo "Not" -> "Note"
2013-12-09 09:53:16 +00:00
Tom Christie
2c898bd901
Update release notes
2013-12-09 09:27:10 +00:00
Tom Christie
c1be503308
Add notes to contributing docs
2013-12-09 08:46:18 +00:00
Tom Christie
e6f6bb5c7e
Add notes to contributing docs
2013-12-09 08:42:09 +00:00
Tom Christie
23369650e3
Add notes to contributing docs
2013-12-09 08:14:21 +00:00
Tom Christie
e80b353085
Add notes to contributing docs
2013-12-09 08:10:51 +00:00
Tom Christie
5eca31d161
Merge pull request #1275 from qooleot/master
...
RelatedField is function of serializer class
2013-12-08 23:46:55 -08:00
Rustam Lalkaka
b8732d2165
Minor grammar fix -- 'team' is singular
2013-12-08 19:34:24 -05:00
taras
3399158d62
RelatedField is function of serializer class
2013-12-08 11:40:40 -05:00
Andy Wilson
db19fba50d
update installation example to work with django 1.6
...
looks like django.conf.urls.defaults was deprecated as of django 1.6
2013-12-06 22:31:07 -06:00
kahnjw
887da7f6c5
Add missing tick marks
2013-12-06 14:30:33 -08:00
kahnjw
196c5952e4
Fix typo
2013-12-06 14:24:16 -08:00
kahnjw
100a933279
Add documentation to explain what effect these changes have.
2013-12-06 14:22:08 -08:00
Tom Christie
910de38a9c
Version 2.3.10
2013-12-06 22:13:50 +00:00
Tom Christie
85d9eb0f7e
Update release-notes.md
2013-12-06 21:47:26 +00:00
Tom Christie
51359e4612
Added @chuckharmston for kickass bug squashing in #1272
2013-12-06 21:42:52 +00:00
Tom Christie
f8088bedef
Upgrade JSONP security warning.
2013-12-05 09:01:00 +00:00
Drew Kowalik
f2682537e0
fix broken documentation links
2013-12-04 16:10:05 -08:00
Tom Christie
6446b44f01
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2013-12-04 14:59:28 +00:00
Tom Christie
de5b9e39dd
First pass on contribution guide
2013-12-04 14:59:09 +00:00
Tom Christie
04a43ddca5
Merge pull request #1267 from tomchristie/fix-1133
...
Clarify wording, fixes #1133 .
2013-12-04 00:52:07 -08:00
Tom Christie
3c3906e278
Clarify wording, fixes #1133 .
2013-12-04 08:51:34 +00:00
Tom Christie
38d78b21c0
Remove Content-Type header from empty responses. Fixes #1196
2013-12-03 16:55:11 +00:00
Tom Christie
9f1918e41e
Added @ian-foote, for work on #1250 . Thanks!
2013-12-03 16:06:57 +00:00
Tom Christie
b92c911cf6
Update release-notes.md
2013-12-03 16:05:19 +00:00
Tom Christie
fe4c7d4000
Update release-notes.md
2013-12-03 08:26:58 +00:00
Pablo Recio
699ec7236b
Adds pre_delete and post_delete hooks on
2013-12-03 00:07:41 +00:00
Stephan Groß
850cd83ba7
Fix TemplateHTMLRenderer example
2013-12-02 11:44:04 +01:00
Omer Katz
c46106c961
Rephrased documentation changes according to feedback on IRC.
2013-11-27 14:47:37 +02:00
Omer Katz
2dce8d7a8a
Recommend using Pillow instead of PIL.
2013-11-27 13:23:49 +02:00
Tom Christie
3765865b4b
Update 'default' explanation. Closes #1239
2013-11-20 17:40:56 +00:00
Tom Christie
304b193efe
Update release-notes.md
2013-11-19 15:58:34 +00:00
Tom Christie
ca2bd616d9
Remove a couple of .html suffixes in docs
2013-11-19 11:01:27 +00:00
Tom Christie
bc69a6d983
Add a 404 page to the docs
2013-11-18 16:10:26 +00:00
Tom Christie
20325cce18
Drop .html suffixes in docs
2013-11-18 16:10:14 +00:00
Tom Christie
075b8c1037
Add User import. Refs #599
2013-11-18 09:29:09 +00:00
Tom Christie
128bda5712
Use less specfic language in UltaJSON notes
2013-11-15 15:24:32 +00:00
Tom Christie
1d1b2f765c
Version 2.3.9
2013-11-15 13:55:02 +00:00
Alex
72d72e4d3e
Add Alex Good to credits (Whoop!)
2013-11-13 14:32:37 +00:00
Jacob Haslehurst
52ac2199a8
Added drf-ujson-renderer to renderers docs
...
drf-ujson-renderer is a third party renderer that implements JSON renderering using UltraJSON
2013-11-11 22:24:37 +11:00
Doğan Çeçen
fd2c291c4d
Typo on api-guide/fields.md and serializers.py
2013-11-11 11:54:30 +02:00
Tom Christie
003b9dda34
Merge pull request #1207 from erkarl/master
...
Updated OAuth2 authentication docs.
2013-11-02 02:24:08 -07:00
Tom Christie
5e0538fcda
Added @robhudson for work on #1211 . Thanks!
2013-11-02 09:15:35 +00:00
erkarl
f72488d609
Updated OAuth2 authentication docs.
2013-10-31 03:47:23 +02:00
Kit Randel
7d5499bcac
In the API test client example 'data' was not defined. There's also no
...
need to define 'expected' as we can just test against the dict.
2013-10-25 11:45:33 +13:00
Tom Christie
2ddf7869e3
Added @yamila-moreno for work on #1199 . Thanks!
2013-10-24 15:29:40 +01:00
Tom Christie
d1edef410d
Merge pull request #1199 from yamila-moreno/get-filter-backends
...
Added get_filter_backends method
2013-10-24 07:29:21 -07:00
Yamila Moreno
82e9ddcf7a
Added get_filter_backends method
2013-10-24 16:16:01 +02:00
Yamila
c92af2b1dd
Typo on generic-views.md
2013-10-24 15:56:53 +02:00
Tom Christie
4d894fd39e
Added @alexanderlukanin13 for fix #1198 . Thanks!
2013-10-24 13:50:05 +01:00