I'm a newbie. In my forum app, users can get topics they created, like
this:

def topics_I_create(request, user_name):
    topic_list = Topic.objects.filter(author__username__exact =
user_name)

But how to get topics they replied?

def topics_I_reply(request, user_name):
    ...

------------------------------------------------------
models.py:

class Topic(models.Model):
    """ Topic of Forum """
    forum = models.ForeignKey(Forum)
    author = models.ForeignKey(User)
...

class TopicComment(models.Model):
    """ Comment of Topic """
    topic = models.ForeignKey(Topic)
    author = models.ForeignKey(User)
...
-----------------------------------------------------

Thanks  always!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to