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(...)
#Here is where I need the help
def WordStats(models.Model):
# I get an error saying
word = models.ManyToManyField(Word)
stats = ...
Is there anyway to accomplish this? Without writing separate models
for each word.
Thanks,
Luke S.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---