On Mon, Mar 27, 2006 at 12:37:54PM -0800, wam wrote:
> Well, it was my understanding that since I have the potential of having
> many 'inspired by' documents linked to a particular document, and that
> any particular document could have inspired many other other documents,
> then that means I'm
Malcolm Tredinnick wrote:
> Hi William,
> I may be missing something, but it sounds like you want a one-to-many
> (a.k.a. ForeignKey) relationship here. The 'one' side is the "self"
> document in each case with links to 'many' other documents. I don't
> believe a ManyToMany relationship is
On 3/27/06, wam <[EMAIL PROTECTED]> wrote:
class Doc(meta.Model): title = meta.CharField(maxlength=50) contents = meta.TextField() inspired_by = meta.ManyToManyField(Doc) supercedes = meta.ManyToManyField(Doc)I've obviously been having problem with the recursive nature of the
Hi William,
On Sun, 2006-03-26 at 20:16 -0800, wam wrote:
> I have a model where I will have a pool of documents that will have
> several references to various other documents within the pool. For
> example, I'm trying to do something similar to the following:
>
> class Doc(meta.Model):
>
I have a model where I will have a pool of documents that will have
several references to various other documents within the pool. For
example, I'm trying to do something similar to the following:
class Doc(meta.Model):
title = meta.CharField(maxlength=50)
contents = meta.TextField()
5 matches
Mail list logo