Commits

KS Chan committed e9d761e

Enabled displayname field in User model

Comments (0)

Files changed (1)

src/pythonhk/models.py

 import calendar
 import os.path
+import os
 from base64 import urlsafe_b64decode, urlsafe_b64encode
 from datetime import datetime, timedelta, date, time
 from hashlib import sha256
 #    """BIGINT Facebook ID, indexed"""
 #    username = Column(Unicode(80), unique=True, index=True)
 #    """VARCHAR(80) UNIQUE, indexed"""
-#    displayname = Column(Unicode(80), nullable=False)
-#    """VARCHAR(80) NOT NULL"""
+    displayname = Column(Unicode(80), nullable=False)
+    """VARCHAR(80) NOT NULL"""
     email = Column(Unicode(80), unique=True, nullable=False, index=True)
     """VARCHAR(80) UNIQUE NOT NULL, indexed"""