core: add is_link and get_url property to base Source

This commit is contained in:
Jens Langhammer
2018-12-18 13:24:58 +01:00
parent f6c5f10d65
commit b0fa302718
3 changed files with 24 additions and 0 deletions

View File

@ -82,6 +82,16 @@ class Source(RuleModel):
objects = InheritanceManager()
@property
def is_link(self):
"""Return true if Source should get a link on the login page"""
return False
@property
def get_url(self):
"""Return URL used for logging in"""
raise NotImplementedError
def __str__(self):
return self.name