Skip to content

Commit

Permalink
fix wallet in Django>=2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Mar 17, 2020
1 parent 0b40dab commit 62df378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion payments/wallet/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62df378

Please sign in to comment.