Skip to content

Commit 517d03d

Browse files
committed
修复oauth登录bug
1 parent eb63a80 commit 517d03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DjangoBlog/blog_signals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def oauth_user_login_signal_handler(sender, **kwargs):
7171
oauthuser.picture = save_user_avatar(oauthuser.picture)
7272
oauthuser.save()
7373

74-
delete_view_cache(oauthuser.author.username)
74+
delete_sidebar_cache(oauthuser.author.username)
7575

7676
cache.clear()
7777

0 commit comments

Comments
 (0)