Closed
Bug 948091
Opened 12 years ago
Closed 10 years ago
Change pagination serializer settings
Categories
(Marketplace Graveyard :: Code Quality, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mat, Unassigned)
References
Details
When we switched to DRF, we kept compatibility with how tastypie does pagination by setting the default pagination serialization class to one built for this purpose. However, it needs something in the view to properly work. So I built the necessary code in MarketplaceView base class.
This cause problems when we forget to inherit from MarketplaceView, so this kinda sucks. This caused bug 948084 and bug 945709.
We should investigate whether there is an alternative solution, but this seems like the best plan: Let's have 2 pagination serializers:
- A basic one
- Another one with the tastypie compatibility (offset-style pagination)
Instead of defaulting to the second one, we should default to the basic one in the settings and only use the other in MarketplaceView and its children, by setting pagination_serializer_class.
Updated•12 years ago
|
Priority: -- → P3
Updated•11 years ago
|
Component: API → Code Quality
| Reporter | ||
Comment 2•10 years ago
|
||
Never going to happen.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•