1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[social auth & notification] Add wechat work notification

This commit is contained in:
zhengxie
2018-11-14 16:04:50 +08:00
parent 57fac87e44
commit 0efcbb10a3
45 changed files with 2589 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
from django.db import models
class UserSocialAuthManager(models.Manager):
"""Manager for the UserSocialAuth django model."""
class Meta:
app_label = "social_django"
def get_social_auth(self, provider, uid):
try:
return self.select_related('user').get(provider=provider,
uid=uid)
except self.model.DoesNotExist:
return None