Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

active, admin, staff, and verified Fields Are Not Synced Correctly #83

Open
pnovotnak opened this issue Oct 5, 2016 · 0 comments
Open

Comments

@pnovotnak
Copy link
Contributor

I think that this line is broken; 37ff75b#diff-46ecae53ba9f8c81d6e2cd0c74251579R115

In my local env (Python 3.5.2, django-stormpath 1.1.0), the first variable in this list created by key.split(self.DJANGO_PREFIX) is an empty string. Here's a screenshot of a debugger attached, with the line broken to illustrate the problem;

empty first element shown in debugger

I'm not sure when exactly this cropped up, but here's what that sort of operation looks like in my python interpreter;

$ python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 'string_key'.split('string_')
['', 'key']

I'll be submitting a PR in a just a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant