Ticket #87 (closed defect: fixed)

Opened 19 months ago

Last modified 9 months ago

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:1 Changed 19 months ago by slav0nic

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

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:3 Changed 19 months ago by adamm

I'm using the latest bitbucket .gz from 6-7 days 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:6 Changed 19 months ago by adamm

  • Status changed from new to closed
  • Resolution set to fixed

comment:7 Changed 9 months ago by slav0nic <slav0nic0@…>

(In [d13220c8831b]) fix #87: topic deleting droped forum in cascade

Note: See TracTickets for help on using tickets.