aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/validators.py
diff options
context:
space:
mode:
authorBrian Jacobel2014-12-13 14:47:11 -0500
committerBrian Jacobel2014-12-13 14:47:11 -0500
commit2d470eef809b119c8c72009c81d652ddbf895e0b (patch)
tree087e75859c1a9551d07761c572e92b6c6aab8a04 /rest_framework/validators.py
parentdd712a1c2620b5dc9ad8eef5ff78ef232feb12e8 (diff)
downloaddjango-rest-framework-2d470eef809b119c8c72009c81d652ddbf895e0b.tar.bz2
Change serializers.Field to serializers.ReadOnlyField for 3.x compatibility
Using this code snippet as-is on DRF 3.0.1 results in a NotImplementedError being raised for to_representation due to 3.0's changed behavior with serializers.Field. The code snippet should be updated to use serializers.ReadOnlyField instead. Further discussion here: https://groups.google.com/forum/?fromgroups=#!topic/django-rest-framework/aX8mLT_v3yc
Diffstat (limited to 'rest_framework/validators.py')
0 files changed, 0 insertions, 0 deletions