Adjust test to internal type change

This commit is contained in:
Raphael Michel
2019-04-05 14:59:05 +02:00
parent f3128591d8
commit dd0b6e6647
2 changed files with 7 additions and 7 deletions

View File

@@ -31,10 +31,10 @@ class PluginsField(Field):
def to_representation(self, obj):
from pretix.base.plugins import get_all_plugins
return [
return sorted([
p.module for p in get_all_plugins()
if not p.name.startswith('.') and getattr(p, 'visible', True) and p.module in obj.get_plugins()
]
])
def to_internal_value(self, data):
return {