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 94faf44 commit c11dbb5Copy full SHA for c11dbb5
psqlextra/sql.py
@@ -1,3 +1,4 @@
1
+from collections import OrderedDict
2
from typing import List, Optional, Tuple
3
4
import django
@@ -54,7 +55,7 @@ def rename_annotations(self, annotations) -> None:
54
55
)
56
57
# rebuild the annotations according to the original order
- new_annotations = dict()
58
+ new_annotations = OrderedDict()
59
for old_name, annotation in self.annotations.items():
60
new_name = annotations.get(old_name)
61
new_annotations[new_name or old_name] = annotation
0 commit comments