Hi there,

I'm very new to Django and I'm learning it by adapting the stuff from
the tutorial to a new (test) application, a Forum. The tutorial nicely
explains that you don't want "Polls" and "Choices" in the main menu,
because "Choices" is a part of "Poll". With my test-app I want to go
even further. I have a Forum, which has Threads, which have Posts.

For starters, I want all of those to be accesible from the admin menu
(page 2 of the tutorial), so I made my model as so:

class Forum(meta.Model):
        [...]
        class META:
                admin = meta.Admin()

class Thread(meta.Model):
        forum = meta.ForeignKey(Forum, edit_inline=meta.STACKED)
        [...]

class Post(meta.Model):
        thread = meta.ForeignKey(Thread, edit_inline=meta.STACKED)
        [...]

This doesn't work as intended, though. It only allows me to make new
Threads, but I can't see/edit/create Posts. Any thought on how to
tackle this? Thanks in advance!

-- 
Kind regards,
Tim Stoop

Reply via email to