(sender, **kwargs)
| 53 | |
| 54 | @receiver(oauth_user_login_signal) |
| 55 | def oauth_user_login_signal_handler(sender, **kwargs): |
| 56 | id = kwargs['id'] |
| 57 | oauthuser = OAuthUser.objects.get(id=id) |
| 58 | site = get_current_site().domain |
| 59 | if oauthuser.picture and not oauthuser.picture.find(site) >= 0: |
| 60 | from djangoblog.utils import save_user_avatar |
| 61 | oauthuser.picture = save_user_avatar(oauthuser.picture) |
| 62 | oauthuser.save() |
| 63 | |
| 64 | delete_sidebar_cache() |
| 65 | |
| 66 | |
| 67 | @receiver(post_save) |
nothing calls this directly
no test coverage detected