My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 15: Bug while using admin interface to delete posts
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Apr 2008


 
Reported by a.alibra...@gmail.com, Feb 27, 2008
Deleting a post in admin interface deletes all the related posts, threads,
and forums.
Mar 24, 2008
#1 eric.moritz
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
django-forum-deletebug.r16.patch
3.2 KB   View   Download
Mar 24, 2008
#2 eric.moritz
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.
django-forum-deletebug.r16.patch
4.4 KB   View   Download
Apr 4, 2008
Project Member #3 rwpoul...@gmail.com
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.
Status: Fixed

Powered by Google Project Hosting