1. Armin Ronacher
  2. zine-maintenance

Commits

mitsuhiko  committed 007fa39

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

  • Participants
  • Parent commits 067c3aa
  • Branches default

Comments (0)

Files changed (1)

File zine/models.py

View file
                                           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,