Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@lyschoening lyschoening released this 10 Jan 11:51
· 6 commits to master since this release

Breaking Changes

  • The timezone is now always included with fields.DateTimeString and defaults to UTC with native datetime objects. (Thanks @albertodonato)

Features

  • The sort_attribute meta class attribute of a resource can be used to change the default pagination sort order, which otherwise is id_attribute ascending. Descending order is supported. (Thanks @albertodonato and @luord)
class SpamResource(Resource):
    class Meta:
        model = Spam
        sort_attribute = 'name', True

Bugfixes

  • Fix field.Object(pattern_properties={}) pattern definition
  • Fix JSONSchema of patchable fields. (Thanks @bjornt)