aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authorMark Holmquist <mtraceur@member.fsf.org>2012-11-10 16:59:37 -0800
committerSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-17 21:34:04 +0100
commitdc4dfbde350fdd9eac50448e42f2c8b209dd6ea8 (patch)
treee46b401ad1cfb2aab400658491ed2975f23ff61a /mediagoblin/db/models.py
parent49745d5138540af8f7cbce318767172f4c560881 (diff)
downloadmediagoblin-dc4dfbde350fdd9eac50448e42f2c8b209dd6ea8.tar.lz
mediagoblin-dc4dfbde350fdd9eac50448e42f2c8b209dd6ea8.tar.xz
mediagoblin-dc4dfbde350fdd9eac50448e42f2c8b209dd6ea8.zip
Add a license preference field
This feature is absolutely necessary. Now a user can simply define their default license and quickly go through a form, as opposed to stopping to click on the select and choosing the same option over and over again. Also added DB migration for the field, so that's working now, too. Rebased by Sebastian and made the default value to be unicode. Reviewed-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 782bf869..7e2cc7d2 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -63,6 +63,7 @@ class User(Base, UserMixin):
# Intented to be nullable=False, but migrations would not work for it
# set to nullable=True implicitly.
wants_comment_notification = Column(Boolean, default=True)
+ license_preference = Column(Unicode)
verification_key = Column(Unicode)
is_admin = Column(Boolean, default=False, nullable=False)
url = Column(Unicode)