Open GoogleCodeExporter opened 8 years ago
Would a on_delete signal make sense that checks when a post is deleted if it is
the
only post in the thread to also delete the thread? Or is a script that runs
periodically and checks for threads without posts better?
Original comment by mand...@gmail.com
on 7 Mar 2009 at 2:25
django-forum folks -- sorry about the noise.
{% url profile_detail latest_post.author %} was my addition and is not in the
templates for this project. Nonetheless I think there is a still a problem with
empty threads ... any advice is appreciated.
shacker,
I got a hack for this for now, just added an {% if %} statement.
http://dpaste.com/8742/
Original comment by mand...@gmail.com
on 7 Mar 2009 at 1:20
I think it would be good to add either an on_delete signal, or code in the Post
.delete() method, to determine if the post is the only one for a thread and then
delete that thread if it is.
I'm unsure of the best way to handle deleted users though; we probably should
have
*some* sort of logic to stop things becoming totally broken.
If somebody beats me to a patch for the 'delete' handling though it'd be
appreciated
- the user issue causes fewer problems than having empty threads IMO.
Original comment by rwpoul...@gmail.com
on 8 Mar 2009 at 6:28
Original comment by rwpoul...@gmail.com
on 3 May 2009 at 12:33
Original issue reported on code.google.com by
shacker....@gmail.com
on 7 Mar 2009 at 1:06