8000 Fix google analytics widget (#301) · socketpy/django-jet@cf3ceb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf3ceb8

Browse files
woutorf1nality
authored andcommitted
Fix google analytics widget (geex-arts#301)
* Make _lock attribute available * Allow server-side token refresh
1 parent 4518989 commit cf3ceb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jet/dashboard/dashboard_modules/google_analytics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
class ModuleCredentialStorage(Storage):
4141
def __init__(self, module):
42+
super(ModuleCredentialStorage, self).__init__()
4243
self.module = module
4344

4445
def locked_get(self):
@@ -73,7 +74,8 @@ def __init__(self, storage=None, redirect_uri=None):
7374
self.FLOW = flow_from_clientsecrets(
7475
JET_MODULE_GOOGLE_ANALYTICS_CLIENT_SECRETS_FILE,
7576
scope='https://www.googleapis.com/auth/analytics.readonly',
76-
redirect_uri=redirect_uri
77+
redirect_uri=redirect_uri,
78+
prompt='consent'
7779
)
7880

7981
if storage is not None:

0 commit comments

Comments
 (0)
0