Tom Christie
098ff83eb8
Merge pull request #3162 from lgiordani/fix_tutorial_serializer
...
Removed import of unused django.forms.widgets
2015-07-16 15:36:55 +01:00
Leonardo Giordani
4f6eba3ce8
Removed import of unused django.forms.widgets
2015-07-16 16:25:01 +02:00
Tom Christie
713333d354
Merge branch 'master' of github.com:tomchristie/django-rest-framework
2015-07-16 15:17:27 +01:00
Tom Christie
806b0b34da
Include nested objects in metadata for OPTIONS. Closes #3156 . Closes #2915 .
2015-07-16 15:17:18 +01:00
Tom Christie
5c264c0e1f
Merge pull request #3161 from tomchristie/allow-empty
...
Added allow_empty flag
2015-07-16 14:34:36 +01:00
Tom Christie
264d423493
Added allow_empty flag for ListField, ListSerializer, ManyRelation, MultipleChoiceField.
2015-07-16 13:51:15 +01:00
Tom Christie
81709a2c73
Merge pull request #3160 from vstoykov/test-for-3153
...
Test for #3153
2015-07-16 13:49:59 +01:00
Venelin Stoykov
73c0ebc2d5
Test for #3153
2015-07-16 15:40:41 +03:00
Tom Christie
db40b7eb91
Add coverage to runtests. Closes #2936 .
2015-07-16 12:39:01 +01:00
Tom Christie
a8acdbc388
Resolve issue with nested serializers in HTML forms. Closes #3153 .
2015-07-16 12:04:38 +01:00
Tom Christie
cde7154c59
Runtests should not suppress stdout. In the context of a web app only serves to hide erronous print statements.
2015-07-16 11:50:22 +01:00
Tom Christie
d231f36588
Support default values being used for empty HTML fields. Closes #3130 .
2015-07-16 11:47:40 +01:00
Tom Christie
7315ed8b00
Resolve browsable API form issues with nested serializers. Closes #3153 .
2015-07-16 10:49:00 +01:00
Tom Christie
c879aaf398
page_size needs to be stored as state on CursorPagination. Refs 3147.
2015-07-16 10:26:16 +01:00
Tom Christie
0ea64f6b33
More docs on configuring a custom metadata class.
2015-07-16 10:19:27 +01:00
Tom Christie
a9f1d99cb5
Fix 'metadata' action on viewsets. Closes #3158 . Closes #3157 . Closes #3115 .
2015-07-16 10:08:22 +01:00
Tom Christie
6b08e97b6a
Form fields should use textual only value representations. Closes #3139 . Closes #2416 . Closes #2558 .
2015-07-14 15:47:13 +01:00
Tom Christie
8d306823b4
Update docs on ALLOWED_VERSIONS and DEFAULT_VERSION. Closes #2778 .
2015-07-14 15:03:33 +01:00
Tom Christie
132eab7bbd
Raise helpful error when erronously including nested data in multipart post requests with test client. Closes #2919 .
2015-07-14 14:49:44 +01:00
Tom Christie
c14ad7add7
Handle .choices for related fields when queryset argument is actually a mamanger instance. Closes #3145 .
2015-07-14 13:31:24 +01:00
Tom Christie
1b51bcdbae
Merge branch 'master' of github.com:tomchristie/django-rest-framework
2015-07-14 13:21:20 +01:00
Tom Christie
bca2ea35df
Ensure that realtionship fields '.choices' returns an empty dict when accessed with a read-only field. Closes #2910 .
2015-07-14 13:21:08 +01:00
Tom Christie
9c952dcfe9
Merge pull request #3147 from tomchristie/uploadcare-cursor-limits
...
Add `get_page_size` hook to `CursorPagination`
2015-07-14 12:44:13 +01:00
Tom Christie
468361425d
page_size should be local, not overwriting class attribute.
2015-07-14 12:32:27 +01:00
Tom Christie
3c57e08f62
Clarifications to read_only fields. Closes #3064 .
2015-07-14 12:22:51 +01:00
Tom Christie
586c3350d4
Writable Nested Serializer example in relationships docs. Closes #2924 .
2015-07-14 12:10:40 +01:00
Tom Christie
2b51d5594b
Remove whitespace and comment changes
2015-07-14 11:41:25 +01:00
Tom Christie
14a32ae32d
Add get_page_size hook to CursorPagination. Closes #3068 .
2015-07-14 11:40:15 +01:00
Tom Christie
1d012aeb93
Merge branch 'cursor-limits' of https://github.com/uploadcare/django-rest-framework into uploadcare-cursor-limits
2015-07-14 11:37:18 +01:00
Tom Christie
209bcb9087
Added url_field_name class attribute to ModelSerializer. Closes #3106 .
2015-07-14 11:21:33 +01:00
Tom Christie
538ffaf6c7
Store self.action='metadata' for OPTIONS requests on viewsets. Closes #3115 .
2015-07-14 11:13:26 +01:00
Xavier Ordoquy
11e3cfbf6e
Merge pull request #3142 from peleccom/patch-1
...
Fixed typo in docs
2015-07-13 16:07:06 +02:00
Alexander Pitkin
6d4ae2c40f
Fixed type in docs
...
Fixed typo in Miscellaneous notes of 3.0 release announcement docs
2015-07-13 16:46:14 +03:00
homm
a3afcfb6d3
duplicate get_page_size
and related properties from PageNumberPagination
2015-07-13 14:44:48 +03:00
homm
59905e9335
revert BasePageSizePagination class and CursorPagination inheritance
2015-07-13 14:36:47 +03:00
Carlton Gibson
6ff5385996
Merge pull request #3140 from dptechdev/patch-1
...
Update rest-hypermedia-hateoas.md
2015-07-11 23:54:17 +02:00
Derek Pauley
387dfd5dc3
Update rest-hypermedia-hateoas.md
...
There was a typo under ## What REST framework doesn't provide.
Original: What REST framework doesn't do is give you is machine readable hypermedia formats such as [HAL][hal],
Fixed: What REST framework doesn't do is give you machine readable hypermedia formats such as [HAL][hal],
2015-07-11 13:23:57 -05:00
Xavier Ordoquy
061081c732
Merge pull request #3133 from YuriHeupa/patch-2
...
Changed typo in Renderer docs of BrowsableAPIRenderer
2015-07-10 08:15:35 +02:00
Yuri Hernani Heupa
c04c8808c6
Changed typo in Renderer docs
...
The BrowsableAPIRenderer was misspelled with an extra 'e' letter
2015-07-09 22:41:53 -03:00
Xavier Ordoquy
f33ca01511
Merge pull request #3112 from juannyG/master
...
Fix nested serializer required=False multipart data validation bug
2015-07-08 15:15:14 +02:00
Juan Gutierrez
2887fc4a0b
update QueryDict initialization to satisfy older versions of Django
2015-07-08 08:25:12 -04:00
Juan Gutierrez
35db2b142f
remove FakeMultiDict definition in nested serializer tests and replace with django QueryDict
2015-07-08 08:19:42 -04:00
José Padilla
8e6db16e91
Merge pull request #3118 from dealertrack/master
...
Added django-rest-framework-braces in Misc list of 3rd party tools
2015-07-06 18:07:59 -04:00
Miroslav Shubernetskiy
3bb9e251d7
added django-rest-framework-braces in Misc list of 3rd party tools
2015-07-06 17:35:21 -04:00
Xavier Ordoquy
b24741ae89
Merge pull request #3114 from jpadilla/master
...
Fix custom parser example
2015-07-06 10:22:09 +02:00
José Padilla
f161241e07
Fix custom parser example
2015-07-05 16:48:33 -04:00
Juan Gutierrez
b0c5f9db2f
allow a non-required nested serializer to validate correctly when receiving multipart data
2015-07-03 12:28:48 -04:00
Max Peterson
ee2afb83e2
Fix 1.4 tests and make flatten_choice a utility.
2015-07-03 13:56:49 +01:00
Max Peterson
56b3f19605
Add support for grouped choices.
...
This also adds support for mixing single and paired choices:
```
[
('poor', 'Poor quality'),
'medium',
('good', 'Good quality'),
]
```
2015-07-03 12:27:01 +01:00
José Padilla
c091addb83
Merge pull request #3105 from MattBroach/broach
...
added link to Django Rest Multiple Models to Third Party Packages on Generic Views API docs
2015-07-02 18:35:45 -04:00