-
Notifications
You must be signed in to change notification settings - Fork 132
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
self
can't be used as a key
#93
Comments
Thanks for reaching out! |
Right, thanks. In any case keep in mind that you can use |
mewwts
added a commit
that referenced
this issue
Jun 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's because init method is present and has
self
parameter.There are several ways to overcome this issue:
self
parameter in init method to some unique string/guid. Here how it could look like:Though, it's still impossible to use key with
_8629116b_4d94_42d9_bee1_d8374f6938a7_
name :)2. create factory method, which will protect field names and the unprotect them. Here is an example.
Not sure whether you are interested in fixing it, but I thought you would be interested in it.
The text was updated successfully, but these errors were encountered: