mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-19 04:32:28 +03:00
Fix type name of FieldInfo
namedtuple
This commit is contained in:
parent
605cc4f736
commit
3d3a6a8ea9
|
@ -7,7 +7,7 @@ Usage: `get_field_info(model)` returns a `FieldInfo` instance.
|
||||||
"""
|
"""
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
FieldInfo = namedtuple('FieldResult', [
|
FieldInfo = namedtuple('FieldInfo', [
|
||||||
'pk', # Model field instance
|
'pk', # Model field instance
|
||||||
'fields', # Dict of field name -> model field instance
|
'fields', # Dict of field name -> model field instance
|
||||||
'forward_relations', # Dict of field name -> RelationInfo
|
'forward_relations', # Dict of field name -> RelationInfo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user