diff --git a/payments/wallet/widgets.py b/payments/wallet/widgets.py index f689c514f..3093b60d7 100644 --- a/payments/wallet/widgets.py +++ b/payments/wallet/widgets.py @@ -19,5 +19,8 @@ def __init__(self, provider, payment, *args, **kwargs): @property def media(self): media = super(WalletWidget, self).media - media._js = self.js + try: # Django < 2.2 + media._js = self.js + except AttributeError: + media._js_lists = [self.js] return media