Re: mutually referential models
Just add quote into your model that you do not defined yet.
On Aug 22, 12:26 am, Andy Howell <AndyHow...@austin.rr.com> wrote:
>
> class Computer(models.Model):
> name = models.CharField(max_length=80)
> description = models.CharField(max_length=80, null=True)
> interfaces = models.ManyToManyField(ComputerInterface)
>
interfaces = models.ManyToManyField('ComputerInterface')
Widoyo
> class ComputerInterface(Node):
> ipAddr = models.IPAddressField(null=True)
> mbitsPerSec = models.IntegerField(null=True)
...
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home