Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

'Field' object has no attribute 'default' during introspection. #171

Closed
francxk opened this issue Dec 10, 2014 · 0 comments
Closed

'Field' object has no attribute 'default' during introspection. #171

francxk opened this issue Dec 10, 2014 · 0 comments

Comments

@francxk
Copy link

francxk commented Dec 10, 2014

With the 0.2.4 version (DRF 2.4.4 et DRFMongoengine) version i have issue:

'Field' object has no attribute 'default' in introspector.py.
rest_framework_swagger/introspectors.py in get_default_value, line 23

I investigate a little, and i found code modification not equivalent, get_resolved_value becomes get_default_value.

The first code works get_resolved_value, getattr has a default values (None for instance) and with get_default_value, getattr has no more default value.

I hope it helps.

ariovistus pushed a commit that referenced this issue Dec 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant