Switch from Django's old curry() method to functools.partial().

Review Request #11093 — Created July 22, 2020 and submitted

Information

Django Evolution
master

Reviewers

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 of functools.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.

Summary ID
Switch from Django's old curry() method to functools.partial().
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 of `functools.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()`.
ef241451ba9f0ec88867cf80b504252bc19ed9a8
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (cc127f0)