diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-17 17:06:06 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-17 17:06:06 -0500 |
commit | e83dc091cc8d60f5dd7372b0d684f16fbfbc7fec (patch) | |
tree | be2e03a4997a46a60802a718bd9a2a240a7d40cb | |
parent | 080a81ec48b9681ed19adb998340585ed8716c77 (diff) | |
download | mediagoblin-e83dc091cc8d60f5dd7372b0d684f16fbfbc7fec.tar.lz mediagoblin-e83dc091cc8d60f5dd7372b0d684f16fbfbc7fec.tar.xz mediagoblin-e83dc091cc8d60f5dd7372b0d684f16fbfbc7fec.zip |
docstring for MediaComment's structure
-rw-r--r-- | mediagoblin/db/models.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index db755402..bad15aca 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -171,7 +171,6 @@ class MediaEntry(Document): viewing the work. (currently unused.) - thumbnail_file: Deprecated... we should remove this ;) - """ __collection__ = 'media_entries' @@ -294,6 +293,18 @@ class MediaEntry(Document): class MediaComment(Document): + """ + A comment on a MediaEntry. + + Structure: + - media_entry: The media entry this comment is attached to + - author: user who posted this comment + - created: when the comment was created + - content: plaintext (but markdown'able) version of the comment's content. + - content_html: the actual html-rendered version of the comment displayed. + Run through Markdown and the HTML cleaner. + """ + __collection__ = 'media_comments' structure = { |