DuVale / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bug while using admin interface to delete posts #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Deleting a post in admin interface deletes all the related posts, threads,
and forums.

Original issue reported on code.google.com by a.alibra...@gmail.com on 27 Feb 2008 at 8:43

GoogleCodeExporter commented 9 years ago
This problem was due to the latest_post foreign keys.

What I did was removed the foreign keys and replaced them with a class property

I also added a delete method to the Post model that updates the counters

Patch:
http://code.knoxpy.org/upload/django-forum-deletebug.r16.patch

Original comment by eric.moritz on 25 Mar 2008 at 3:43

Attachments:

GoogleCodeExporter commented 9 years ago
After looking over my previous patch I noticed some quirks with the counters.

I altered my code and it all seems to be working now.

Original comment by eric.moritz on 25 Mar 2008 at 4:57

Attachments:

GoogleCodeExporter commented 9 years ago
I've merged Eric's patch into the codebase and will have it in trunk later 
today.

Due to the database change a little bit of trickery will be involved with 
updates -
I'll document those when I do the release.

Original comment by rwpoul...@gmail.com on 5 Apr 2008 at 12:36