diff options
| author | Rense VanderHoek | 2015-02-20 16:31:12 +0100 | 
|---|---|---|
| committer | Rense VanderHoek | 2015-02-20 16:31:12 +0100 | 
| commit | c8609ba652e1752e690c9e27e02b3531589d0c2c (patch) | |
| tree | df496b7117d12f80b84d5663e84979a6fad479cc /tests/test_metadata.py | |
| parent | dc8cc8607763fccc6eb3668ea7e2a976c08dd614 (diff) | |
| download | django-rest-framework-c8609ba652e1752e690c9e27e02b3531589d0c2c.tar.bz2 | |
Set field length/values as actual attributes.
The SimpleMetadata class in metadata.py tries to getattr() attributes
on a field. For this to work, max_length and min_length have to be
actually set as an attribute.
Did the same for min_value and max_value and added those two to
SimpleMetadata.get_field_info
Diffstat (limited to 'tests/test_metadata.py')
0 files changed, 0 insertions, 0 deletions
