This commit is contained in:
zandercymatics 2023-08-14 09:47:16 -06:00
parent 5fd842233a
commit 23405cd145
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ class AdminFormOrderHelper():
"""A helper class to order a dropdown field in Django Admin, takes the fields you want to order by as an array""" # noqa """A helper class to order a dropdown field in Django Admin, takes the fields you want to order by as an array""" # noqa
# Used to keep track of how we want to order_by certain FKs # Used to keep track of how we want to order_by certain FKs
_sorting_dict: [SortingDictInterface] = [...] # noqa _sorting_dict: list[SortingDictInterface] = [...] # noqa
def __init__(self, sort): def __init__(self, sort):
self._sorting_dict = sort self._sorting_dict = sort

View file

@ -436,7 +436,7 @@ class AuditedAdminTest(TestCase):
self.assertEqual(desired_order, self.assertEqual(desired_order,
current_sort_order_coerced_type, current_sort_order_coerced_type,
"{} is not ordered alphabetically".format(field.name)) "{} is not ordered alphabetically".format(field_name))
# I originally spent some time trying to fully # I originally spent some time trying to fully
# generalize this to replace the match/arg fields, # generalize this to replace the match/arg fields,