add user settings for Sources

This commit is contained in:
Jens Langhammer
2019-03-13 16:49:30 +01:00
parent e98e5e4e3e
commit ae3c092238
17 changed files with 84 additions and 109 deletions

View File

@ -186,6 +186,12 @@ class Source(PolicyModel):
"""Return additional Info, such as a callback URL. Show in the administration interface."""
return None
def has_user_settings(self):
"""Entrypoint to integrate with User settings. Can either return False if no
user settings are available, or a tuple or string, string, string where the first string
is the name the item has, the second string is the icon and the third is the view-name."""
return False
def __str__(self):
return self.name