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

Specify __all__ in mixins and generics #5

Merged
merged 1 commit into from
Apr 16, 2014
Merged

Specify __all__ in mixins and generics #5

merged 1 commit into from
Apr 16, 2014

Conversation

kevin-brown
Copy link
Contributor

This fixes #2 by specifically saying what will be imported from mixins.py and generics.py when a star import is done on these files. This is done within __init__.py, so the classes can be imported directly from there. This prevents an issue where rest_framework.mixins was being imported from generics.py, so users were not able to import rest_bulk_create.mixins.

@kevin-brown kevin-brown changed the title Specify __all__ in mixins and generics Specify __all__ in mixins and generics Apr 2, 2014
@miki725
Copy link
Owner

miki725 commented Apr 2, 2014

Can you add your name to readme (I just changed to use my github link instead of email if you want to follow the same format - 701734a) and then Ill merge this.

@miki725 miki725 mentioned this pull request Apr 2, 2014
This fixes #2 by specifically saying what will be imported from
`mixins.py` and `generics.py` when a star import is done on these
files.  This is done within `__init__.py`, so the classes can be
imported directly from there.  This prevents an issue where
`rest_framework.mixins` was being imported from `generics.py`, so
users were not able to import `rest_bulk_create.mixins`.
@miki725 miki725 merged commit aecad13 into miki725:master Apr 16, 2014
@miki725
Copy link
Owner

miki725 commented Apr 16, 2014

thanx. just merged.

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

Successfully merging this pull request may close these issues.

Error importing mixins using from rest_framework_bulk import mixins as bulk_mixins
2 participants