Ticket #87 (closed defect: fixed)
Moderating Topics deletes Forum
| Reported by: | adamm | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | 0.1 |
| Component: | Uncategorized | Version: | devel |
| Keywords: | delete, topic, moderation | Cc: | |
| Blocked By: | Blocking: |
Description
When you delete a Topic for a specific forum it deletes the entire Forum as well as any other Topics associated with that forum.
This is because Django does a CASCADE delete on all Foreign Keys.
Change History
comment:2 Changed 19 months ago by slav0nic
ups sor, i read as delete a Forum
u used latest forum version? this bug was fixed many time ago...
comment:4 Changed 19 months ago by adamm
It works fine if you go into the Topic and delete the top post. It only deletes the Forum if you moderate and delete from there.
comment:5 Changed 19 months ago by adamm
This is how I've gotten it to work...Not sure if its the best way but here it goes.
views.py
Line 146:
post = topic.posts.order_by('created')[0]
post.delete()
Line 146:
Remove topic.delete()
comment:7 Changed 9 months ago by slav0nic <slav0nic0@…>
(In [d13220c8831b]) fix #87: topic deleting droped forum in cascade

and?) as it will be work in your opinion?