Commits

Kang-min Wang committed 201f39d

fix init method

Comments (0)

Files changed (1)

 
             if query.count() == 0 :
                 try:
-                    model.Conference(
+                    conf = model.Conference(
                         name = default_conf_name,
                         desc = default_conf_desc
-                    ).put()
+                    )
+                    conf.put()
+
+                    model.Joke(
+                        conf = conf,
+                        when = 'nothing for when',
+                        where = 'nothing for where',
+                        who = 'nothing for who',
+                        what = 'nothing for what').put()
+
+
                 except BadValueError:
                     self.response.out.write('init fail')
         else: