Skip to content

Releases: wharton/automagic-rest

2.1.1

24 Jan 21:14
Compare
Choose a tag to compare

What's Changed

  • Don't add an underscore when appending the suffix. A variable with __ is not valid in Django REST Framework and creates errors.
    Full Changelog: 2.1.0...2.1.1

2.1.0

24 Jan 20:34
6d0fe51
Compare
Choose a tag to compare

What's Changed

  • Add the AUTOMAGIC_REST_RESERVED_WORD_SUFFIX setting, defaulted to var, to append to reserved words and columns ending in an underscore. By @FlipperPA in #7
    Full Changelog: 2.0.1...2.1.0

2.0.1

14 Jan 22:31
Compare
Choose a tag to compare

What's Changed

  • BREAKING CHANGE: columns that are reserved words append _var (again), rather than _, to avoid issues with filters.
  • Formatted with ruff.
    Full Changelog: 1.1.0...2.0.1

1.1.0

03 Apr 22:13
f9c0319
Compare
Choose a tag to compare

What's Changed

  • POTENTIAL BREAKING CHANGE: columns that are reserved words will only append _ rather than _var by @FlipperPA in #6
  • Bug fix: the _ is also appended to the OPTIONS metadata so the column name identifiers match by @FlipperPA in #6
  • Max line length of 88 fixed by @FlipperPA in #6
    Full Changelog: 1.0.0...1.1.0

1.0.0

21 Nov 15:53
Compare
Choose a tag to compare

What's Changed

  • Release version 1.0.0: it has been used in production for years at Wharton.
  • Add a dictionary of columns positions to the view as self.positions by @FlipperPA
  • Refine CountEstimatePagination by @rgs258
    Full Changelog: 0.4.3...1.0.0

0.4.3

28 Nov 18:24
580ca6d
Compare
Choose a tag to compare

What's Changed

0.4.2

05 Jul 14:17
Compare
Choose a tag to compare

What's Changed

  • Lock django-filter at version 21.1
    • Version 22.1 breaks support for djangorestframework-filters==1.0.0.dev2, the latest release.
  • This is not ideal, but works for now. We will have to come up with a long-term plan, as it appears djangorestframework-filters is no longer maintained.

Full Changelog: 0.4.1...0.4.2

0.4.1

22 Apr 18:20
Compare
Choose a tag to compare

What's Changed

  • Add support for json and jsonb PostgreSQL columns
  • Ignore un-supported columns with a warning (such as ts_vector)

Full Changelog: 0.4.0...0.4.1

0.4.0

15 Mar 19:09
Compare
Choose a tag to compare

What's Changed

  • __in lookups are now supported for all filter fields, such as ticker__in=IBM,MSFT,AAPL.
  • A bug was fixed that caused the filter fields to be rendered twice in the DRF HTML browsable interface.
  • README was updated.

Full Changelog: 0.3.0...0.4.0

0.3.0

16 Feb 18:35
Compare
Choose a tag to compare
  • Add support for get_extra_sql, to customize the WHERE clause in the information_schema query.
  • Remove errant exclusion of tables ending in chars