I do something similar in my app. I display a whole bunch of posts to
the user, and they can choose to reply to any one. In my case all the
displayed posts are in a single form. Associated with each post is a
reply button whose onclick handler makes a call to a jquery function I
wrote called
Not sure on the Django side, but I know that most forum software uses a
separate table for threads, having the posts refer back to the thread_id.
The first post, would obviously be the topic of the thread.
On Wed, Dec 16, 2009 at 9:31 AM, Stewart wrote:
> Disclaimer:
Disclaimer: This is my first Django adventure, please be gentle.
I am currently working on a model that has a foreign key pointing to
itself. This foreign key is not mandatory. Think of a post in a forum.
The post will have a number of replies. The post itself will not have
a foreign key however
3 matches
Mail list logo