mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Restrict Payment Providers to Sales Channels (#1481)
* Allow to restrict payment providers to specific sales channels * Fix test * Add `payment_restrictions_supported`-property to SalesChannels
This commit is contained in:
committed by
Raphael Michel
parent
384e7f8fc1
commit
6896682dd1
@@ -719,7 +719,7 @@ class ProviderForm(SettingsForm):
|
||||
v.set_event(self.obj)
|
||||
|
||||
if hasattr(v, '_as_type'):
|
||||
self.initial[k] = self.obj.settings.get(k, as_type=v._as_type)
|
||||
self.initial[k] = self.obj.settings.get(k, as_type=v._as_type, default=v.initial)
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super().clean()
|
||||
|
||||
Reference in New Issue
Block a user