Monday, November 28, 2011

Referring to same model records as a parent

I am trying to implement a menu system for my project which would enable the admin to create menu's that will be displayed on the webpage. So i should be able to create sub-menus which will have a parent menu. My table structure will be as follows


Here the parent_id will be the id of the menu of the same table. So on the admin area i want a select box for the parent_id which will display the already entered records. How can it be done? 

Thanks and Regards,
Swaroop Shankar V

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment