Skip to content

Instantly share code, notes, and snippets.

@marcgibbons
Created May 16, 2013 18:56
Show Gist options
  • Save marcgibbons/5594132 to your computer and use it in GitHub Desktop.
Save marcgibbons/5594132 to your computer and use it in GitHub Desktop.
View ex
class CigarList(ListCreateAPIView):
"""
Lists and creates cigars from the database.
"""
model = Cigar
serializer_class = CigarSerializer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment