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

Weird import bug #13

Closed
andybak opened this issue Apr 1, 2014 · 1 comment
Closed

Weird import bug #13

andybak opened this issue Apr 1, 2014 · 1 comment

Comments

@andybak
Copy link

andybak commented Apr 1, 2014

In [1]: import select2

In [2]: select2.fields
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-6ec2b8b5794a> in <module>()
----> 1 select2.fields

AttributeError: 'module' object has no attribute 'fields'

In [3]: dir(select2)
Out[3]:
['__builtins__',
 '__doc__',
 '__file__',
 '__name__',
 '__package__',
 '__path__',
 '__version__',
 '__version_info__']

In [4]: import select2.fields

In [5]: dir(select2)
Out[5]:
['__builtins__',
 '__doc__',
 '__file__',
 '__name__',
 '__package__',
 '__path__',
 '__version__',
 '__version_info__',
 'fields',
 'models',
 'utils',
 'widgets']
@andybak
Copy link
Author

andybak commented Apr 1, 2014

Installed via:

pip install -e git+https://github.com/DjangoAdminHackers/django-select2-forms.git#egg=django-select2-forms

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

2 participants