#4956: Implement Reverse Pagination
--------------------------------------------------+-------------------------
   Reporter:  Amit Upadhyay <[EMAIL PROTECTED]>  |                Owner:  jacob 
                
     Status:  new                                 |            Component:  
Generic views         
    Version:  SVN                                 |           Resolution:       
                 
   Keywords:                                      |                Stage:  
Design decision needed
  Has_patch:  1                                   |           Needs_docs:  1    
                 
Needs_tests:  0                                   |   Needs_better_patch:  0    
                 
--------------------------------------------------+-------------------------
Comment (by Amit Upadhyay <[EMAIL PROTECTED]>):

 Replying to [comment:8 [EMAIL PROTECTED]:
 > Another approach to solving this issue: instead of storing references to
 the next/previous pages (the contents of which change as new objects are
 added), there could be an option to store references to the next/previous
 OBJECTS based on what's already on the page. So say you had 372 objects,
 and you were looking at the first ten (so objects 1-10). Instead of a
 "previous page" link with a "?page=2" string attached, you'd have a
 "previous 10" link with a "?object=11" attached, a signal to start the
 next page with object 11.
 
 object==1 is the oldest item or the newest? This will decide the queryset
 ordering. This will also decide if caching stays or gets invalidated when
 new items are added. This will also decide if the page is bookmark-able or
 not.
 
 You are confusing the discussion of "should pagination be forward of
 backward?" with "should we paginated by using page no. or object index?".
 They are mutually exclusive discussions, and both will have to be
 answered. I just assumed the second question is answered, and page number
 was found to be  "better" than object.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4956#comment:9>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to