Trying to make a "choose your own adventure" like application so
chapters don't have an "order" but knowing the starting chapter is
required.  I can't figure out how to define the model.

class Story(meta.Model):
    start_chapter = meta.OneToOneField(Chapter) #Chapter not defined yet

class Chapter(meta.Model):
    story = meta.ForeignKey(Story)


Because relation fields expect a class object and not a string or
something.  This is also rather annoying that I have to layout models
not in an order that makes sense but in an order that the implimentation
forces (models with relations must be beneath the relatedto models)

Am I being daft with my db design?
Is there a workaround?

oh, running .91 svn co

thanks,
norm

--~--~---------~--~----~------------~-------~--~----~
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