Answer the question
In order to leave comments, you need to log in
How to build a query in Django?
Hello, We
have the following models
class Category(models.Model):
name = models.CharField(max_length=250)
class Item(models.Model):
category = models.ForeignKey(Category)
name = models.CharField(max_length=250)
class Price(models.Model):
item = models.ForeignKey(Item)
price = models.DecimalField(default=0, max_digits=7,decimal_places=2)
update_time = models.DateTimeField(auto_now_add=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question