On Thursday, May 28, 2015 at 6:53:58 AM UTC-4, Johann Spies wrote:
>
>
>
> On 28 May 2015 at 12:42, Niphlod <[email protected]> wrote:
>
> auto_pagination = False.
>>
>> That being said, mind that without ordering, pagination is inherently 
>> incorrect 
>>
>>
> Thanks.  Will that not respect my orderby = ~db.isi_alt_names.code?  I 
> just do not want the extra ordering added.
>
> Maybe one can patch the code to only add ordering if there is no other 
> specified by the user.
>

For pagination to work, there must be a unique ordering. If the user 
specifies an orderby, we have no way of knowing whether it will result in a 
unique ordering (well, unless the field has unique=True set). The 
auto_pagination argument was introduced to allow the user to control the 
behavior. See the discussion here 
<https://groups.google.com/forum/#!searchin/web2py-developers/auto_pagination/web2py-developers/nklB1tRh_zU/8mSG3fJuGKcJ>
.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to