Stephan Groß
876a58e8bf
Add drf settings + output format + testcases
2013-03-01 13:16:00 +01:00
Tom Christie
e1f0001f92
Fix and test for #645
...
Yuck, pickle is weird. Closes #645 .
2013-02-22 23:00:07 +00:00
Tom Christie
9f98455362
Formatting
2013-02-22 23:00:07 +00:00
Yuri Prezument
8fa82822a0
Add assertion in test
2013-02-21 15:39:14 +02:00
Yuri Prezument
1b4c078db2
Failing test case for #669
2013-02-21 12:22:09 +02:00
Tom Christie
f341ead499
Test for None in 'dotted.source' component.
...
Closes #643 .
2013-02-12 23:01:20 +00:00
Tom Christie
15fa42b647
Unicode literal fix
2013-02-12 23:00:43 +00:00
Tom Christie
724906c516
Test for #637 .
2013-02-12 22:58:38 +00:00
Tom Christie
7f797abc19
Remove deprecated APIs from tests
2013-02-12 20:07:35 +00:00
Tom Christie
aa03425c09
Merge pull request #651 from fernandogrd/master
...
DictWithMetadata.__getstate__ was never called (Fix for 645)
2013-02-11 23:27:35 -08:00
Fernando Rocha
ea004b5e7a
Make use o issubclass instead of isinstance (fix issue #645 )
...
Because __mro__ is a list of classes and not instances.
DictWithMetadata.__getstate__ was never called
Signed-off-by: Fernando Rocha <fernandogrd@gmail.com>
2013-02-11 19:18:22 -03:00
Tom Christie
670ac25b25
Allow serializers to handle dicts as well as objects. Fixes #447 .
2013-02-07 12:57:40 +00:00
Tom Christie
8113d66126
Use new style of required=<bool>
not blank
or null
2013-02-07 09:24:34 +00:00
Tom Christie
5813a09512
Use new many=True relations style.
2013-02-07 09:14:58 +00:00
Tom Christie
937ef00808
Merge branch 'master' into 2.2
2013-02-04 21:19:11 +00:00
Tom Christie
221e77d357
Fix incorrect test name. Fixes #635
2013-02-04 21:18:54 +00:00
Tom Christie
b052c92ac3
Cleanup imports
...
Mostly adding `from __future__ import unicode_literals` everywhere.
2013-02-04 20:55:35 +00:00
Tom Christie
8e846bdf52
Merge branch 'py3k' into 2.2
...
Conflicts:
rest_framework/relations.py
rest_framework/serializers.py
rest_framework/tests/relations_hyperlink.py
rest_framework/tests/relations_slug.py
2013-02-04 20:37:09 +00:00
Tom Christie
f4f237e3ee
3.2, 3.3 compat
2013-02-01 14:03:28 +00:00
Tom Christie
d9c7b1c585
Merge branch 'p3k' of https://github.com/linovia/django-rest-framework into working
...
Conflicts:
rest_framework/authentication.py
rest_framework/relations.py
rest_framework/serializers.py
rest_framework/settings.py
rest_framework/tests/authentication.py
rest_framework/tests/genericrelations.py
rest_framework/tests/generics.py
rest_framework/tests/relations_hyperlink.py
rest_framework/tests/relations_nested.py
rest_framework/tests/relations_pk.py
rest_framework/tests/serializer.py
2013-02-01 11:58:55 +00:00
Tom Christie
be6df3ae3c
Merge branch 'master' into many-fields
...
Conflicts:
rest_framework/relations.py
2013-01-30 13:41:56 +00:00
Tom Christie
a3a06d11cc
Ensure model field validation is performed for ModelSerializers with a custom restore_object method. Fixes #623 .
2013-01-28 12:56:42 +00:00
Tom Christie
b5d8f50f9d
Merge branch 'master' into many-fields
2013-01-26 21:37:43 +00:00
Stephan Groß
f0071dbccd
Add separate test for failed custom validation
2013-01-23 07:52:56 +01:00
Stephan Groß
dc1c57d595
Add failed testcase for fieldvalidation
2013-01-21 12:45:30 +01:00
Tom Christie
4eb5861f36
Starting migration from ManyField to Field(many=True)
2013-01-18 23:36:35 +00:00
Tom Christie
26f9acb45a
Validation errors instead of exceptions when serializers receive incorrect types. Fixes #402 .
2013-01-04 14:11:05 +00:00
Tom Christie
6da21fa796
Merge pull request #541 from yprez/default_and_partial_serializers2
...
Fix "default" values and partial serializers. Fixes #532 .
2013-01-03 14:05:36 -08:00
Xavier Ordoquy
9c7524fc33
Fixed unicode errors.
2013-01-02 19:06:02 +01:00
Xavier Ordoquy
737349d238
Merge remote-tracking branch 'reference/py3k' into p3k
2013-01-02 16:09:21 +01:00
Tom Christie
809f5de330
Merge pull request #515 from yprez/blank_fields_issue
...
Fix for #514
2012-12-29 05:25:43 -08:00
Yuri Prezument
36e1987f59
Regression test for #532 - values overriden by "default" setting
2012-12-25 18:50:00 +02:00
Mark Aaron Shirley
2f5582a1a6
Merge remote-tracking branch 'upstream/master' into related-required
2012-12-19 15:24:22 -08:00
Tom Christie
a493c83248
urls, patterns, include imports move to compat to support incoming 1.3 thru 1.6 import compatability
2012-12-19 23:12:27 +00:00
Yuri Prezument
c13f132a21
Failing test with partial serializer and foreign keys
2012-12-19 09:24:11 -08:00
Yuri Prezument
967f22e7d1
Failing test case for #514
...
Serializer errors are: {'title': [u'This field is required.']}
2012-12-17 16:50:20 +02:00
Joel Marcotte
01e06bcdf8
Added test for "positive_integer in choices tuple does not get parsed if not string".
...
Signed-off-by: Joel Marcotte <skaner@gmail.com>
2012-12-15 16:33:08 -05:00
Tom Christie
497da7fc69
Clean up field initialization. Fixes #497
2012-12-12 20:45:06 +00:00
Tom Christie
4058223309
Fix broken nested fields
2012-12-11 21:07:25 +00:00
George Kappel
80f15c598a
Added depth test
2012-12-11 09:14:52 -06:00
Marko Tibold
d0935d1fbb
get_excluded_fieldnames() should respect Meta options' ability to be either a tuple or list. Fixes #490 .
...
Refactored `if self.opt.fields` out of the for loop.
Updated and cleaned up the validation-tests.
2012-12-10 23:10:04 +01:00
Tom Christie
a5178e9a36
Merge pull request #451 from markotibold/#431
...
Call model's .full_clean() method, eg. to validate uniqueness
2012-12-07 12:34:56 -08:00
Tom Christie
6ffcd7ba36
Merge pull request #477 from roberts81/master
...
Fix for #460
2012-12-06 14:54:28 -08:00
Marko Tibold
c65f22e0e4
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework into #431
2012-12-06 23:47:47 +01:00
Ben Roberts
cb7d9ea5c9
cleaned up white space & docstring styling
2012-12-06 12:45:50 -07:00
Ben Roberts
7f28a78414
cleaned up last commit
2012-12-05 17:54:21 -07:00
Ben Roberts
705c7ad09d
added tests and fix for unpickleable metadata in SortedDictWithMetadata
2012-12-05 17:43:47 -07:00
Xavier Ordoquy
5fad46d7e2
Merge remote-tracking branch 'reference/master' into p3k
2012-12-02 12:43:32 +01:00
Pavel Savchenko
1c1bd3fc5d
fix test response
2012-11-30 01:37:21 +02:00
Pavel Savchenko
e311b763e1
add traverse_related feature + tests (fixes issue#461)
2012-11-30 01:34:46 +02:00