core: make application's provider not required

# Conflicts:
#	authentik/core/api/applications.py
This commit is contained in:
Jens Langhammer 2020-12-24 13:04:52 +01:00
parent 94972d64e6
commit 34166d3c20
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class ApplicationSerializer(ModelSerializer):
"""Application Serializer""" """Application Serializer"""
launch_url = SerializerMethodField() launch_url = SerializerMethodField()
provider = ProviderSerializer(source="get_provider", required=False)
def get_launch_url(self, instance: Application) -> str: def get_launch_url(self, instance: Application) -> str:
"""Get generated launch URL""" """Get generated launch URL"""