Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Refactor Django helpers (#546)
Browse files Browse the repository at this point in the history
* Move all Django code into contrib.django_util.
* Add DjangORMStorage. This is backwards compatible with old django_orm storage.
* Add new functionality to decorators and views that integrate with Django ORM-based storage.
* Fix issue where Django storage always creates new Models.
* Move tests into Django package and have them create an actual test app to create test databases etc.
* Remove FlowField.
  • Loading branch information
waprin authored and Jon Wayne Parrott committed Jul 26, 2016
1 parent 3ba3c60 commit 25165ad
Show file tree
Hide file tree
Showing 26 changed files with 1,526 additions and 996 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# settings module and load it. This assumes django has been installed
# (but it must be for the docs to build), so if it has not already
# been installed run `pip install -r docs/requirements.txt`.
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.contrib.test_django_settings'
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.contrib.django_util.settings'
import django
import mock
from pkg_resources import get_distribution
Expand Down
7 changes: 0 additions & 7 deletions docs/source/oauth2client.contrib.django_orm.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/oauth2client.contrib.django_util.models.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
oauth2client.contrib.django_util.models module
==============================================

.. automodule:: oauth2client.contrib.django_util.models
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/oauth2client.contrib.django_util.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Submodules

oauth2client.contrib.django_util.apps
oauth2client.contrib.django_util.decorators
oauth2client.contrib.django_util.models
oauth2client.contrib.django_util.signals
oauth2client.contrib.django_util.site
oauth2client.contrib.django_util.storage
Expand Down
1 change: 0 additions & 1 deletion docs/source/oauth2client.contrib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Submodules
oauth2client.contrib.appengine
oauth2client.contrib.devshell
oauth2client.contrib.dictionary_storage
oauth2client.contrib.django_orm
oauth2client.contrib.flask_util
oauth2client.contrib.gce
oauth2client.contrib.keyring_storage
Expand Down
182 changes: 0 additions & 182 deletions oauth2client/contrib/django_orm.py

This file was deleted.

Loading

0 comments on commit 25165ad

Please sign in to comment.