Sorry, class Book should be:
class Book(models.Model):
author = models.ForeignKey(Author)
publisher = models.ForeignKey(Publisher)
price = models.DecimalField()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this
Given that the following models:
class Author(models.Model):
name = models.CharField()
class Book(models.Model):
author = models.ForeignKey(Author)
price = models.DecimalField()
class Publisher(models.Model):
name = models.CharField()
In normal query:
2 matches
Mail list logo