-
Notifications
You must be signed in to change notification settings - Fork 431
Conversation
'credentials_property': 'credential' | ||
} | ||
|
||
Where path.to.model class is the fully qualified name of a django.db.model |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Also should address #528 . cc @letsmakesense @theromis in case you have opinions since you commented on Django stuff before. |
""" | ||
|
||
from importlib import import_module |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if not request.user.is_authenticated(): | ||
return shortcuts.redirect( | ||
'{}?next={}'.format( | ||
settings.LOGIN_URL, request.path)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Finished a pass, please let me know when you're ready for another round. Also, to reduce the review burden here, can you submit the samples as a separate PR after this is done? |
74b40fd
to
be34903
Compare
e32efa0
to
e281441
Compare
@nathanielmanistaatgoogle ready for another pass at your convenience, thanks |
credentials into an existing Django user system. | ||
|
||
Returns: | ||
A tuple containing three strings, or None. If |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Third pass done. It was much shorter; I think this is nearing completion! :-) |
@nathanielmanistaatgoogle ready for another pass. Thanks for thorough review, still need to improve my attention to small details! Coveralls is complaining but all the files here have 100% coverage, unrelated files aren't at 100%. I previously was amending my commits and force pushing the branch, but I've since realized pushing commits that respond to comments and then squashing before merge makes it easiest to review, all the commits with TO SQUASH will be squashed once ready to merge. |
@waprin there are some conflicts on this branch, can you resolve? |
@jonparrott rebased. still will squash pre-merge so @nathanielmanistaatgoogle can view diffs from comments. |
Looks good to me. @jonparrott, anything else from you coming out of the last week of review? What's with the failing test result? |
@waprin can you get travis green again? Once you do we can merge.
This is the last one I need for 3.0.0. :) Thanks. |
Moves all Django code into contrib.django_util. Adds new functionality to decorators and views that integrate with ORM storage. DjangORMStorage is backwards compatible with old django_orm storage. Fixes issue where Django storage was always creating new Models. Move tests into Django package and have them create an actual test app to create test databases etc. Kills FlowField as it’s not useful.
@jonparrott fixed, just accidentally let the files I deleted back in in the merge. Thank you for all reviews. I still have those samples that I took out of this PR. Though I assume that shouldn't block the release anyway since they are not part of the core lib. |
They won't block release. Feel free to send that PR whenever. |
Primarily addressed #494
Moves all Django code into contrib.django_util.
Adds new functionality to decorators and views that integrate with ORM
storage.
Adds two Django samples for the primary two use cases - using Google
OAuth as the primary auth, and integrating it into exisiting user
system.
DjangORMStorage is backwards compatible with old django_orm storage.
Fixes issue where Django storage was always creating new Models.
Move tests into Django package and have them create an actual test app
to create test databases etc.
Kills FlowField as its not useful.