Skip to content

Commit

Permalink
Update master (#368)
Browse files Browse the repository at this point in the history
* Update .travis.yml

* Fix google analytics widget (#301)

* Make _lock attribute available

* Allow server-side token refresh

* Update README.rst

* Update README.rst
  • Loading branch information
f1nality committed Oct 17, 2018
1 parent 10cc9d4 commit 36f6428
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion README.rst
Expand Up @@ -7,6 +7,17 @@ Django JET

**Modern template for Django admin interface with improved functionality**

+-----------------------------------------------------------------------------------------------------------------------------------+
| Attention! **NEW JET** |
+===================================================================================================================================+
| **We are proud to announce completely new Jet. Please check out Live Demo.** |
| |
| Developing of new features for Django Jet will be frozen, only critical bugs will be fixed. |
+-----------------------------------------------------------------------------------------------------------------------------------+
| `Live Demo <https://app.jetadmin.io/demo?utm_source=jet&utm_medium=banner&utm_campaign=github&utm_content=link&utm_term=promo>`_ |
+-----------------------------------------------------------------------------------------------------------------------------------+


Django JET has two kinds of licenses: open-source (AGPLv3) and commercial. Please note that using AGPLv3
code in your programs make them AGPL compatible too. So if you don't want to comply with that we can provide you a commercial
license (visit Home page). The commercial license is designed for using Django JET in commercial products
Expand All @@ -20,7 +31,8 @@ and applications without the provisions of the AGPLv3.
:align: center

* Home page: http://jet.geex-arts.com/
* **Live Demo**: http://demo.jet.geex-arts.com/admin/
* **New Jet**: `Live Demo <https://app.jetadmin.io/demo?utm_source=jet&utm_medium=banner&utm_campaign=github&utm_content=link&utm_term=promo>`_
* Live Demo: http://demo.jet.geex-arts.com/admin/
* Documentation: http://jet.readthedocs.org/
* libi.io http://libi.io/library/1683/django-jet
* PyPI: https://pypi.python.org/pypi/django-jet
Expand Down
4 changes: 3 additions & 1 deletion jet/dashboard/dashboard_modules/google_analytics.py
Expand Up @@ -39,6 +39,7 @@

class ModuleCredentialStorage(Storage):
def __init__(self, module):
super(ModuleCredentialStorage, self).__init__()
self.module = module

def locked_get(self):
Expand Down Expand Up @@ -73,7 +74,8 @@ def __init__(self, storage=None, redirect_uri=None):
self.FLOW = flow_from_clientsecrets(
JET_MODULE_GOOGLE_ANALYTICS_CLIENT_SECRETS_FILE,
scope='https://www.googleapis.com/auth/analytics.readonly',
redirect_uri=redirect_uri
redirect_uri=redirect_uri,
prompt='consent'
)

if storage is not None:
Expand Down

0 comments on commit 36f6428

Please sign in to comment.