Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Default sort field at resource level #240

Closed
leplatrem opened this issue Apr 29, 2015 · 0 comments
Closed

Default sort field at resource level #240

leplatrem opened this issue Apr 29, 2015 · 0 comments

Comments

@leplatrem
Copy link
Contributor

class Article(Resource):
    default_sorting = [('created_on', -1)]
    # or ?
    default_sorting = '-created_on'
  • At startup we must check that the specified fields exist
  • For pagination we should combine it with last_modified.

Original mozilla-services/readinglist#84

glasserc pushed a commit that referenced this issue May 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants