M
Size: a a a
M
GZ
DT
GZ
DT
DT
DT
GZ
DT
polls/index.html
DT
GZ
GZ
DT
AS
<QuerySet [
{'category_id': 6779, 'level': 2, 'product_id': 82640, 'title': '01 - Бакалея'},
{'category_id': 6787, 'level': 2, 'product_id': 3054573, 'title': '12 - Бытовая химия'},
{'category_id': 6779, 'level': 2, 'product_id': 3054726, 'title': '01 - Бакалея'}
]
>
пытаюсь сделать in_bulkqueryset.in_bulk(field_name="product_id")*** ValueError: in_bulk()'s field_name must be a unique field but 'product_id' isn't.
queryset.distinct("product_id").in_bulk(field_name="product_id")
*** AttributeError: 'dict' object has no attribute 'product_id'DT
polls/templates/polls/index.html
?AS
GZ
Д
DT