-
Notifications
You must be signed in to change notification settings - Fork 23
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
In IPython, DjangoChoices.labels raises AttributeError for 'keys' #33
Comments
The same code runs okay in a python script so it's not an urgent bug, however DjangoChoices probably tries to be too smart/hacky? |
Interesting, it seems like the metaclass is not running properly. I'll see if I can investigate in a few hours. For completeness sake - does this also happen on a regular python shell and/or bpython? |
C.labels Works in regular shell as well as python script |
sergei-maertens
added a commit
to sergei-maertens/django-choices
that referenced
this issue
Aug 28, 2016
sergei-maertens
added a commit
that referenced
this issue
Aug 28, 2016
Fixed #33: access dict methods of Labels (IPython support)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I noticed this behavior in ipython. Here's my environment:
And the traceback:
The text was updated successfully, but these errors were encountered: