Commits

Anonymous committed 007fa39

Setting user on a command to None no longer deletes the comment.

Comments (0)

Files changed (1)

                                           cascade='all, delete, delete-orphan'),
     'comments':         db.dynamic_loader(Comment,
                                           backref=db.backref('user', lazy=False),
-                                          cascade='all, delete, delete-orphan'),
+                                          cascade='all, delete'),
     '_own_privileges':  db.relation(_Privilege, lazy=True,
                                     secondary=user_privileges,
                                     collection_class=set,