Skip to content

Commit 107f379

Browse files
committed
options(viewsets): handle missing provider setting
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
1 parent 4ca4554 commit 107f379

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rdmo/options/viewsets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,6 @@ class AdditionalInputsViewSet(ChoicesViewSet):
148148

149149
class ProviderViewSet(ChoicesViewSet):
150150
permission_classes = (IsAuthenticated, )
151-
queryset = settings.OPTIONSET_PROVIDERS
151+
152+
def get_queryset(self):
153+
return getattr(settings, 'OPTIONSET_PROVIDERS', [])

0 commit comments

Comments
 (0)