Switch from Django's old curry() method to functools.partial().
Review Request #11093 — Created July 22, 2020 and submitted — Latest diff uploaded
We have some functions we dynamically created that made use of Django's
curry()
utility function. This function is gone in Django 3.0, in
favor offunctools.partial()
. While the two are not always fully
interchangeable for all use-cases, they are here.This change simply updates our code to use
partial()
instead of
curry()
.
Unit tests pass on all supported versions of Python and Django.