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

README bug #67

Open
knipknap opened this issue Nov 15, 2017 · 0 comments
Open

README bug #67

knipknap opened this issue Nov 15, 2017 · 0 comments

Comments

@knipknap
Copy link

The README explains how to use the router as follows:

from rest_framework_bulk.routes import BulkRouter

class UserViewSet(BulkModelViewSet):
    model = User

    def allow_bulk_destroy(self, qs, filtered):
        """Don't forget to fine-grain this method"""

router = BulkRouter()
router.register(r'users', UserViewSet)

However, BulkModelViewSet is not imported, neither is it defined in the example.

Similarly, the example registers UserViewSet, while the example above defines FooView - IMO it would be helpful if the example stayed in context.

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

1 participant