From 3d3a6a8ea97bcf2742c2f9a2609918804352ac25 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:25:02 +0200 Subject: [PATCH] Fix type name of `FieldInfo` namedtuple --- rest_framework/utils/model_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/utils/model_meta.py b/rest_framework/utils/model_meta.py index bd5d9177c..bb0b77f58 100644 --- a/rest_framework/utils/model_meta.py +++ b/rest_framework/utils/model_meta.py @@ -7,7 +7,7 @@ Usage: `get_field_info(model)` returns a `FieldInfo` instance. """ from collections import namedtuple -FieldInfo = namedtuple('FieldResult', [ +FieldInfo = namedtuple('FieldInfo', [ 'pk', # Model field instance 'fields', # Dict of field name -> model field instance 'forward_relations', # Dict of field name -> RelationInfo