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

restapi: decouple ProjectViewSet from the pk #4192

Closed
wants to merge 1 commit into from

Commits on Feb 15, 2019

  1. restapi: decouple ProjectViewSet from the pk

    We may want to hook the very same viewset under a different
    router in order to lookup by slug and not pk. If we use
    lookup_field instead of hardcoding it in the views, it becomes
    easier. While at it reuse get_queryset() method for filtering
    the queryset.
    xrmx committed Feb 15, 2019
    Configuration menu
    Copy the full SHA
    c36d4af View commit details
    Browse the repository at this point in the history