diff options
| author | Brian Jacobel | 2014-12-13 14:47:11 -0500 |
|---|---|---|
| committer | Brian Jacobel | 2014-12-13 14:47:11 -0500 |
| commit | 2d470eef809b119c8c72009c81d652ddbf895e0b (patch) | |
| tree | 087e75859c1a9551d07761c572e92b6c6aab8a04 /rest_framework/utils | |
| parent | dd712a1c2620b5dc9ad8eef5ff78ef232feb12e8 (diff) | |
| download | django-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/utils')
0 files changed, 0 insertions, 0 deletions
