core/sources(minor): refactor Source's property

This commit is contained in:
Langhammer, Jens
2019-10-13 16:47:05 +02:00
parent 1cb6b5e984
commit 2ff1635696
4 changed files with 16 additions and 18 deletions

View File

@ -22,11 +22,7 @@ class OAuthSource(Source):
form = 'passbook.sources.oauth.forms.OAuthSourceForm'
@property
def is_link(self):
return True
@property
def get_login_button(self):
def login_button(self):
url = reverse_lazy('passbook_sources_oauth:oauth-client-login',
kwargs={'source_slug': self.slug})
return url, self.provider_type, self.name