From e7e2ed518a28c16d7b02524d2b69f931d301fb0c Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 18 Jun 2016 14:31:19 -0700 Subject: [PATCH] Use OrderedDict in Enum by default --- graphene/utils/enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/utils/enum.py b/graphene/utils/enum.py index 1c535ffc..8c09a6ad 100644 --- a/graphene/utils/enum.py +++ b/graphene/utils/enum.py @@ -94,7 +94,7 @@ def _make_class_unpicklable(cls): cls.__module__ = '' -class _EnumDict(dict): +class _EnumDict(OrderedDict): """Track enum member order and ensure member names are not reused. EnumMeta will use the names found in self._member_names as the