Monday, November 28, 2011

Referring to same model records as a parent

Hi,
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

id
name
url
parent_id

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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment