Added a bunch of NOT NULLs.
[zzz-floof.git] / floof / websetup.py
index be104da..06c0e9c 100644 (file)
@@ -22,14 +22,10 @@ def setup_app(command, conf, vars):
     ### Sample data
     # Users
     from floof.model.users import IdentityURL, User
-    if not User.query.filter_by(name=u'eevee').count:
+    if not User.query.filter_by(name=u'eevee').count():
         identity_url = IdentityURL(url=u'http://eevee.livejournal.com/')
         user = User(name=u'eevee')
         user.identity_urls.append(identity_url)
-    
-    ### Make the canonical user-page
-    from floof.model import UserPage
-    UserPage.make_primary_template()
 
     model.Session.commit()