Все привет!
Как сделать фильтр одним запросом по 5 полям модели "accessories_material"
class Accessories(models.Model):
created_on = models.DateTimeField(u"Дата создания", auto_now_add=True, blank=True, null=True)
posted_by = models.ForeignKey(User, blank=True, null=True)
edited_by = models.CharField(max_length=255, blank=True)
accessories_plot = models.ForeignKey(Accessories_plot, verbose_name='Участок')
accessories_material = models.ForeignKey(Accessories_material)
accessories_material2 = models.ForeignKey(Accessories_material)
accessories_material3 = models.ForeignKey(Accessories_material)
accessories_material4 = models.ForeignKey(Accessories_material)
accessories_material5 = models.ForeignKey(Accessories_material)
-
Вопрос задан
-
2279 просмотров