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

Add Django Model EndpointSet mixin #11

Merged
merged 10 commits into from
Jul 5, 2016

Commits on Jun 29, 2016

  1. Add common logic to EndpointSet.prepare()

    Also add convenience methods for obtaining PK, resource object model,
    and resource object queryset.
    grahamu committed Jun 29, 2016
    Configuration menu
    Copy the full SHA
    d5e7c82 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2016

  1. Implement prepare() and helper methods as mixin

    EndpointSet-based class can inherit this mixin to automatically retrieve
    Django model objects.
    grahamu committed Jun 30, 2016
    Configuration menu
    Copy the full SHA
    570d207 View commit details
    Browse the repository at this point in the history
  2. remove unused import

    grahamu committed Jun 30, 2016
    Configuration menu
    Copy the full SHA
    3c91178 View commit details
    Browse the repository at this point in the history
  3. Update test EndpointSet inheritance.

    Test ResourceEndpointSets now inherit from DjangoModelEndpointSetMixin
    rather than provide their own `get_queryset()` and `prepare()` methods.
    grahamu committed Jun 30, 2016
    Configuration menu
    Copy the full SHA
    dbd2311 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2016

  1. Add mixins to __init__.py

    grahamu committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    9fda210 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cee18b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0451757 View commit details
    Browse the repository at this point in the history
  4. Fix flake8 errors

    grahamu committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    31c04e7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7e9f560 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    711a03c View commit details
    Browse the repository at this point in the history