Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Documentation in progress

  • Loading branch information...
commit 247284af00babe72f8ab0db6c43721cf4c08e96c 1 parent ada8ba5
@davidbgk davidbgk authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.md
View
9 README.md
@@ -16,7 +16,11 @@ Or for the moment:
Usage
-----
-Inherit your own class-based views from existing ones listed below.
+Inherit your own class-based views from existing ones listed below:
+
+ class AuthorDetail(class_based_views.DetailView):
+ queryset = Author.objects.all()
+
Declare your view in your URLs like you already do for classic views:
@@ -51,6 +55,9 @@ Views
* DeleteView: View for deleting an object retrieved with `self.get_object()`.
+HTTP support: note that you can use POST or PUT HTTP verb for
+ creating/editing an object and POST or DELETE for deleting an
+ object.
### Extra views
Please sign in to comment.
Something went wrong with that request. Please try again.