Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created August 3, 2014 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groovecoder/787de2c122e5f9ff1be3 to your computer and use it in GitHub Desktop.
Save groovecoder/787de2c122e5f9ff1be3 to your computer and use it in GitHub Desktop.
class BidViewSet(viewsets.ModelViewSet):
"""
API endpoint for bids. Users can create, update, retrieve, and delete
only their own bids.
url -- url of an OSS bug or issue
"""
model = Bid
serializer_class = BidSerializer
lookup_url_kwarg = 'url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment