circuit
circuit social network code-documentation
Public Member Functions | Static Public Attributes | List of all members
posts.views.PostEditView Class Reference

Inherits UpdateView.

Public Member Functions

def form_valid (self, form)
 
def get_success_url (self)
 

Static Public Attributes

 model = Post
 
list fields
 

Detailed Description

Edit a post's content and/or circle.

Member Function Documentation

def posts.views.PostEditView.form_valid (   self,
  form 
)
Check if the user is allowed to edit the post this way.

The user must be logged in and the post content must be
at most 256 python characters long.

@param form: the form containing the new post
@return `form_valid` if accepted, `form_invalid` if not
def posts.views.PostEditView.get_success_url (   self)

Member Data Documentation

list posts.views.PostEditView.fields
static
Initial value:
1 = [
2  'content',
3  'circles',
4  ]
posts.views.PostEditView.model = Post
static

The documentation for this class was generated from the following file: