Skip to content

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

Description

@pnovotnak

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions