Tom Christie
|
8933bc4b14
|
Merge branch 'validator-pollution' of git://github.com/mhsparks/django-rest-framework into mhsparks-validator-pollution
|
2014-12-09 16:23:33 +00:00 |
|
José Padilla
|
afe7ed9333
|
Add allow_blank for ChoiceField #2184
This makes a ChoiceField optional in HTML if
model field has `blank=True` set.
|
2014-12-09 09:25:06 -04:00 |
|
Tom Christie
|
eee02a47d9
|
Added ListSerializer.validate(). Closes #2168.
|
2014-12-08 14:56:45 +00:00 |
|
Victor Cabral
|
0c0d65d232
|
Fixed unit test for auth login
|
2014-12-08 09:06:52 +07:00 |
|
Tom Christie
|
544967f36e
|
Test tweaks
|
2014-12-05 14:15:58 +00:00 |
|
Tom Christie
|
c611a2c1fe
|
Merge pull request #2213 from BrickXu/master
Raise error if `fields` on serializer is not a list of strings.
|
2014-12-05 14:00:59 +00:00 |
|
Tom Christie
|
65d6cba75f
|
Merge pull request #2200 from maryokhin/master
Clean up compat code
|
2014-12-05 13:14:14 +00:00 |
|
Tom Christie
|
de4ef6e394
|
Merge pull request #2195 from tomchristie/tomchristie-escape-u2028-u2029-json
Escape \u2028 and \u2029 in JSON output.
|
2014-12-05 12:35:24 +00:00 |
|
BrickXu
|
d68c614504
|
Add validation for fields & exclude type.
|
2014-12-05 14:51:39 +08:00 |
|
Tymur Maryokhin
|
d9930181ee
|
Removed unused imports, pep8 fixes, typo fixes
|
2014-12-05 00:29:28 +01:00 |
|
Tymur Maryokhin
|
d54c67d79d
|
Removed custom StringIO, force_text, smart_text compat
|
2014-12-04 03:11:42 +01:00 |
|
Tymur Maryokhin
|
09e59f2686
|
Removed custom python_2_unicode_compatible. Closes #2183
|
2014-12-04 02:50:25 +01:00 |
|
Tom Christie
|
23fa6e54ce
|
Escape \u2028 and \u2029 in JSON output.
Closes #2169.
|
2014-12-03 22:33:34 +00:00 |
|
Mark Hughes
|
55528addf9
|
Added test to show potential issue with UniqueValidator being added to the underlying Django model.
|
2014-12-03 12:30:15 +00:00 |
|
Tom Christie
|
c5a2d501e5
|
Merge pull request #2175 from BrickXu/fix_2171
Not allow to pass an empty actions to viewset.as_view()
|
2014-12-03 08:53:04 +00:00 |
|
Tom Christie
|
0359e9250d
|
FileUploadParser. Raising StopFutureHandlers removes any handlers not yet run for the active set. Closes #2109.
|
2014-12-02 13:52:46 +00:00 |
|
Tom Christie
|
76ac641fbd
|
Minor tweaks for helpful message on Model.objects.create() failure.
|
2014-12-02 13:04:49 +00:00 |
|
Tom Christie
|
54b7b32818
|
Merge branch 'fixes/2013' of git://github.com/gregmuellegger/django-rest-framework into gregmuellegger-fixes/2013
|
2014-12-02 12:46:47 +00:00 |
|
BrickXu
|
53f52765fc
|
Not allow to pass an empty actions to viewset.as_view(). Refs issue #2171
|
2014-12-02 17:07:55 +08:00 |
|
Tymur Maryokhin
|
e2ea98e8ab
|
Fixed typos
|
2014-11-29 20:23:55 +01:00 |
|
Tymur Maryokhin
|
dd9d40d8c0
|
Moved non-conflicting models
|
2014-11-29 20:04:50 +01:00 |
|
Tymur Maryokhin
|
2f03483f96
|
Removed unused models
|
2014-11-29 19:45:26 +01:00 |
|
Tom Christie
|
3a5b3772fe
|
Use ImproperlyConfigured when model meta lookup fails
|
2014-11-28 15:36:04 +00:00 |
|
Tom Christie
|
6fbd23ab34
|
Merge pull request #2086 from beck/doug/blow-up-with-bad-models
Ensure _resolve_model does not return None
|
2014-11-28 15:31:51 +00:00 |
|
Tom Christie
|
8d989bb16d
|
Merge pull request #2143 from linovia/bugfix/1850
Bugfix for #1850
|
2014-11-28 15:01:56 +00:00 |
|
Tom Christie
|
c8764de788
|
Drop defunct tests
|
2014-11-28 13:04:42 +00:00 |
|
Xavier Ordoquy
|
767414439b
|
Be nicer with __closable_objects.
|
2014-11-26 22:20:14 +01:00 |
|
Xavier Ordoquy
|
f5e5ed0077
|
Merge remote-tracking branch 'reference/master' into bugfix/1850
|
2014-11-26 16:36:56 +01:00 |
|
José Padilla
|
653d626b3c
|
Fix failing YAML tests
|
2014-11-25 11:33:18 -04:00 |
|
Tom Christie
|
9c58dfec4e
|
Fix shoddy test case
|
2014-11-25 10:34:21 +00:00 |
|
Tom Christie
|
8586290df8
|
Apply defaults and requiredness to unique_together fields. Closes #2092.
|
2014-11-19 13:55:10 +00:00 |
|
Tom Christie
|
e49d22dbda
|
Allow blank choices to render. Closes #2071.
|
2014-11-19 09:31:26 +00:00 |
|
Doug Beck
|
67735687b2
|
Ensure _resolve_model does not return None
|
2014-11-18 01:26:23 -05:00 |
|
Gregor Müllegger
|
ad060aa360
|
More helpful error message when default .create fails. Closes #2013.
|
2014-11-15 15:29:52 +01:00 |
|
Tom Christie
|
ea98de9b88
|
Model fields with .blank or .null now map to required=False. Closes #2017. Closes #2021.
|
2014-11-13 19:28:57 +00:00 |
|
Tom Christie
|
9e75c4d8ea
|
Reinstate OPTIONS tests
|
2014-11-13 16:24:03 +00:00 |
|
Tom Christie
|
502a86cedb
|
Remove tests/settings. Using conftest instead.
|
2014-11-13 16:10:48 +00:00 |
|
Tom Christie
|
e5cd693e7b
|
Remove test cruft
|
2014-11-13 16:07:25 +00:00 |
|
Tom Christie
|
f387cd89da
|
Uniqueness constraints imply a forced 'required=True'. Refs #1945
|
2014-11-10 12:21:27 +00:00 |
|
Tom Christie
|
db1dd8e240
|
Tests & fixes for list serialization
|
2014-11-06 17:32:33 +00:00 |
|
Tom Christie
|
9923a6ce90
|
Fix tests for py2/3 compat
|
2014-11-06 11:51:10 +00:00 |
|
Tom Christie
|
ed541864e6
|
Support for bulk create. Closes #1965.
|
2014-11-06 10:34:59 +00:00 |
|
Tom Christie
|
0a5d088287
|
Fix failing copy of fields when RegexValidator is used. Closes #1954.
|
2014-11-05 10:48:30 +00:00 |
|
Tom Christie
|
2b535954cd
|
Py2/3 compat for validation test
|
2014-11-03 14:14:12 +00:00 |
|
Tom Christie
|
003c42b0f5
|
Use invalid_data key for error message. Closes #2002.
|
2014-11-03 14:01:02 +00:00 |
|
Tom Christie
|
207208fedf
|
Lazy loading of fields and validators. Closes #1963.
|
2014-10-31 16:38:39 +00:00 |
|
Tom Christie
|
11075d3770
|
Merge branch 'master' into version-3.0
|
2014-10-31 16:05:45 +00:00 |
|
Tom Christie
|
0dea509dc9
|
Nested serializer tests
|
2014-10-30 15:59:16 +00:00 |
|
Tom Christie
|
9ebaabd6eb
|
unique_for_date/unique_for_month/unique_for_year
|
2014-10-28 16:21:49 +00:00 |
|
Tom Christie
|
ae53fdff9c
|
First pass at unique_for_date, unique_for_month, unique_for_year
|
2014-10-22 13:30:28 +01:00 |
|