aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/sql
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-02-04 20:55:55 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2012-02-18 12:35:30 +0100
commite61ab0998b77eaf18268001fd2d70917c3cd3e37 (patch)
tree78b034c490a8c8cdbe880c8b1327ef1c4eb8e1a2 /mediagoblin/db/sql
parent38816c66078fe679dc4b51b545d15d331712bcb4 (diff)
downloadmediagoblin-e61ab0998b77eaf18268001fd2d70917c3cd3e37.tar.lz
mediagoblin-e61ab0998b77eaf18268001fd2d70917c3cd3e37.tar.xz
mediagoblin-e61ab0998b77eaf18268001fd2d70917c3cd3e37.zip
Drop pre-rendered html: User.bio_html
After a bit of discussion, we decided to drop the pre-rendered html from the database and render it on the fly. In another step, we will use some proper caching method to cache this stuff. This commit affects the User.bio_html part.
Diffstat (limited to 'mediagoblin/db/sql')
-rw-r--r--mediagoblin/db/sql/convert.py2
-rw-r--r--mediagoblin/db/sql/models.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/mediagoblin/db/sql/convert.py b/mediagoblin/db/sql/convert.py
index f6575be9..a098927f 100644
--- a/mediagoblin/db/sql/convert.py
+++ b/mediagoblin/db/sql/convert.py
@@ -56,7 +56,7 @@ def convert_users(mk_db):
copy_attrs(entry, new_entry,
('username', 'email', 'created', 'pw_hash', 'email_verified',
'status', 'verification_key', 'is_admin', 'url',
- 'bio', 'bio_html',
+ 'bio',
'fp_verification_key', 'fp_token_expire',))
# new_entry.fp_verification_expire = entry.fp_token_expire
diff --git a/mediagoblin/db/sql/models.py b/mediagoblin/db/sql/models.py
index 9d06f79c..3cf4ff40 100644
--- a/mediagoblin/db/sql/models.py
+++ b/mediagoblin/db/sql/models.py
@@ -64,7 +64,6 @@ class User(Base, UserMixin):
is_admin = Column(Boolean, default=False, nullable=False)
url = Column(Unicode)
bio = Column(UnicodeText) # ??
- bio_html = Column(UnicodeText) # ??
fp_verification_key = Column(Unicode)
fp_token_expire = Column(DateTime)