aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-17 15:48:44 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-17 15:49:49 -0500
commit16bcd1e71494700fba04406c0500a6bb32423d8a (patch)
tree2a58add24901ef64237b8c7dd15e91fccdc68567
parent3923174b706cc0d2f320412dcf1e5b8dc0728b39 (diff)
downloadmediagoblin-16bcd1e71494700fba04406c0500a6bb32423d8a.tar.lz
mediagoblin-16bcd1e71494700fba04406c0500a6bb32423d8a.tar.xz
mediagoblin-16bcd1e71494700fba04406c0500a6bb32423d8a.zip
Docstring for the User model's various schema fields
-rw-r--r--mediagoblin/db/models.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 9d7bcf6b..763e4d68 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -37,6 +37,32 @@ from mediagoblin.util import DISPLAY_IMAGE_FETCHING_ORDER
class User(Document):
+ """
+ A user of MediaGoblin.
+
+ Structure:
+ - username: The username of this user, should be unique to this instance.
+ - email: Email address of this user
+ - created: When the user was created
+ - plugin_data: a mapping of extra plugin information for this User.
+ Nothing uses this yet as we don't have plugins, but someday we
+ might... :)
+ - pw_hash: Hashed version of user's password.
+ - email_verified: Whether or not the user has verified their email or not.
+ Most parts of the site are disabled for users who haven't yet.
+ - status: whether or not the user is active, etc. Currently only has two
+ values, 'needs_email_verification' or 'active'. (In the future, maybe
+ we'll change this to a boolean with a key of 'active' and have a
+ separate field for a reason the user's been disabled if that's
+ appropriate... email_verified is already separate, after all.)
+ - verification_key: If the user is awaiting email verification, the user
+ will have to provide this key (which will be encoded in the presented
+ URL) in order to confirm their email as active.
+ - is_admin: Whether or not this user is an administrator or not.
+ - url: this user's personal webpage/website, if appropriate.
+ - bio: biography of this user (plaintext, in markdown)
+ - bio_html: biography of the user converted to proper HTML.
+ """
__collection__ = 'users'
structure = {