Hi,
On Sun, Nov 16, 2008 at 4:13 AM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
>
> You can't do what you're trying to do in that fashion (using
> ManyToManyField to an abstract base class). Many-to-many and foreign-key
> relations are relations between one table to another table, not to many
On Sat, 2008-11-15 at 19:01 -0800, Luke Seelenbinder wrote:
> That was a typo. The error I'm getting is
> "ForeignKey cannot define a relation with abstract class Word"
> It is a ManyToMany through table, that's the reason it is ForeignKey
One of the many problems with top-posting is that I can'
That was a typo. The error I'm getting is
"ForeignKey cannot define a relation with abstract class Word"
It is a ManyToMany through table, that's the reason it is ForeignKey
Luke
On Nov 15, 8:29 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-11-15 at 06:57 -0800, Luke Seelenbin
On Sat, 2008-11-15 at 06:57 -0800, Luke Seelenbinder wrote:
> Basically, I want to allow a ManyToManyField to use any of a Model's
> children, like this:
>
> class Word(models.Model):
> word = models.CharField(...)
>
> class Meta:
> abstract = True
>
> class Noun(Word):
>
Basically, I want to allow a ManyToManyField to use any of a Model's
children, like this:
class Word(models.Model):
word = models.CharField(...)
class Meta:
abstract = True
class Noun(Word):
gender = models.CharField(...)
class Verb(Word):
irregular = models.BooleanField
5 matches
Mail list logo