Commits  committed 2be910a

continued documentation

  • Participants
  • Parent commits 2a0f854
  • Branches default

Comments (0)

Files changed (1)

File docs/INSTALL

 - gnocchi_ask/question_ask.html
     Used for entering a new question.
+## Models
+    user
+    question
+    content
+    created
+    accepted ->[response]
+    visible:    Boolean
+    tags:       Taggit TagManager
+    votes():    Returns the number of votes for Responses to this question.
+The default manager is a VisibleManager, which adds visible(), returning only
+objects with visible=True.
+    user:       Who posted the response
+    question:   The question the response is for
+    created:    Date/Time of when response was posted
+    content:    Text of the response
+    visible:    Moderation flag
+    vote_up_url():      URL to vote this response up
+    vote_down_url():    URL to vote this response down
+    get_accept_url():   URL to accept this response to the question
+    score():            Returns the sum of vote points for this response
+The default manager is a VisibleManager, with a customised default annotation
+adding 'score', and ordering by scores (descending) and created.