Opened 10 years ago
Closed 10 years ago
#611 closed defect (fixed)
Account deletion does not delete the media entries
|Reported by:||joar||Owned by:||Elrond|
When removing your account via your account settings page, the media files are deleted, but *not* the media entries themselves.
Change History (4)
comment:1 by , 10 years ago
|Status:||new → assigned|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
My time is currently very limited. So if someone else wants to take this, go ahead, without asking me.
- Have user A and B.
- User B creates media M.
- User A post a comment on M.
- User A deletes his own account.
- get_author = relationship(User) + get_author = relationship(User, + backref=backref("posted_comments", + cascade="all, delete-orphan"))
And take a deep look at http://docs.sqlalchemy.org/en/rel_0_7/orm/collections.html#largecollections because the number of comments by a user might be very large, so we should probably use
dynamic instead of loading them on access of the attribute.
Bonus points for a testcase!
comment:4 by , 10 years ago
|Status:||assigned → closed|
Okay, fixed in