stages/email: improve error handling for incorrect template syntax (#7758)
* stages/email: improve error handling for incorrect template syntax Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -38,7 +38,7 @@ class SourceSerializer(ModelSerializer, MetaNameSerializer): | ||||
|  | ||||
|     managed = ReadOnlyField() | ||||
|     component = SerializerMethodField() | ||||
|     icon = ReadOnlyField(source="get_icon") | ||||
|     icon = ReadOnlyField(source="icon_url") | ||||
|  | ||||
|     def get_component(self, obj: Source) -> str: | ||||
|         """Get object component so that we know how to edit the object""" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L