make Admin UI more consistent, better show when provider has no application assigned
This commit is contained in:
		| @ -161,6 +161,10 @@ class Application(PolicyModel): | ||||
|         from passbook.core.policies import PolicyEngine | ||||
|         return PolicyEngine(self.policies.all()).for_user(user).result | ||||
|  | ||||
|     def get_provider(self): | ||||
|         """Get casted provider instance""" | ||||
|         return Provider.objects.get_subclass(pk=self.provider.pk) | ||||
|  | ||||
|     def __str__(self): | ||||
|         return self.name | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer