I am trying to create a class I call "Category" that will contain
Items, these Categories can be nested within each other (much like
eBay or Amazon). I tried to use the following menthod to do that but
the administration interface wont let me create entries because the
ForeignKey must have a value.

Well for the first category it doesn't. Has anyone come across this
before? If so how did you solve it? Thanks for your time.

http://www.djangoproject.com/documentation/model_api/

To create a recursive relationship -- an object that has a many-to-one
relationship with itself -- use models.ForeignKey('self')


-- 
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to