Yuriy Mamaev

Results 13 comments of Yuriy Mamaev

I solved this problem as follows: product-detail.html: ```python {% for image in product.ordered_images %} ... {% endfor %} ``` models.py: ```python class Product: @property def ordered_images(self): return self.images.order_by('productimage__order').all() ``` How...

@shivamraj74 I already fixed it bug here #862. I think my solution is more correct since it eliminates duplication of the parent's code.

> I think simply eliminating the parent's code, could not arise security issues? I don't quite understand how this can cause security problems. Please, show me an example.

The situation repeats with zero offset. Disabling auto-pagination as if it was more than zero does not help here. It is necessary to refine the javascript to fix the error....

I have a question. Why use ```rest_framework.pagination.LimitOffsetPagination``` pagination in ```ProductListPagination```? The ```rest_framework.pagination.PageNumberPagination``` would do this nice for it work. And would not entail such a mistake. What is the reason...

> > Why use rest_framework.pagination.LimitOffsetPagination pagination in ProductListPagination? > > Because unless you use an explicit paginator, say just _next_ and _previous_ buttons, it is easier to handle. Got it...

Also not work short syntax of code block in single line: ```code here```

Выгрузил свой компонент на базе вашего) https://github.com/execut/yii2-1c-odata Там можно увидеть кейсы использования нового функционала.

@jrief this is needed to fix this error in the django-shop due to the use of version 1.3 there https://github.com/awesto/django-shop/blob/master/setup.py#L24