We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c3dc4 commit d75fcbcCopy full SHA for d75fcbc
rest_framework_json_api/metadata.py
@@ -128,8 +128,8 @@ def get_field_info(self, field):
128
field_info['children'] = self.get_serializer_info(field)
129
130
if (not field_info.get('read_only')
131
- and hasattr(field, 'choices')
132
- and not field_info.get('relationship_resource')):
+ and not field_info.get('relationship_resource')
+ and hasattr(field, 'choices')):
133
field_info['choices'] = [
134
{
135
'value': choice_value,
0 commit comments