circuit
circuit social network code-documentation
|
Classes | |
class | PostDeleteView |
class | PostDetailView |
class | PostEditView |
class | PostsListView |
Functions | |
def | post_create (request) |
def | post_repost |
def | post_reply |
def | post_favorite |
@package posts Post views file. @author 7Pros @copyright
def posts.views.post_create | ( | request | ) |
def posts.views.post_favorite | ( | request, | |
pk = None |
|||
) |
Favorite or un-favorite a post. @param pk: the primary key which identifies the post @return redirect to the referer if present, to the post's page otherwise
def posts.views.post_reply | ( | request, | |
pk = None |
|||
) |
Reply to a post. Redirects to the post page. @param request: @param pk: @return:
def posts.views.post_repost | ( | request, | |
pk = None |
|||
) |
Repost a post. This always reposts the original post. Redirects to the post's page if the repost was successful or if the user is not authenticated. Otherwise, redirects to the referer if present, or the landingpage if not. @param pk: the primary key which identifies the post @return redirect depending on the success