Published on

Release: django ant type, presto bugfix release

Authors
  • Name
    Dave Coates

This release contains changes up until release/2022-03-08.

To upgrade any existing projects it's recommended to pull in the relevant commits from upstream.

git remote add upstream git@gitlab.internal.alliancesoftware.com.au:alliance/template-django.git
git cherry-pick XXX1 XXX2

In cases where you are significantly behind it may be easier to pull the whole app (eg. common_audit) in but you'll need to review the relevant branch.


In this release

Django Ant Tabs Type

The common_ant tabs tag now has the type option which can either be card or line.

type="card"

type=card

type="line"

type=line

Usage:

{% load ant_tabs %}
{% tabs type="card" %}
  {% tab "my_app:general_details" %}General Details{% endtab %}
  {% tab "my_app:staff_list" %}Staff{% endtab %}
  {% tab "my_app:produc_list" %}Products{% endtab %}
{% endtabs %}

See the documentation for more details.

Presto Release

Presto 0.0.28 released which contains a bugfix for the recent caching changes.

Fixes a bug when constructing a record with ManyRelatedViewModelField data that in turn had related fields that were null. For example this:

{
  "relatedRecords": [
    {
      "id": 1,
      "nestedRecordId": null,
      "nestedRecord": null
    },
    {
      "id": 2,
      "nestedRecordId": 1,
      "nestedRecord": {
        "id": 1,
        "name": "Nested Record 1"
      }
    }
  ]
}

became:

{
  "relatedRecords": [
    {
      "id": 1,
      "nestedRecordId": null
    },
    {
      "id": 2,
      "nestedRecordId": 1
    }
  ]
}

This has been resolved.

See the changelog for more details

Other changes

  • 917cc4b2 Remove DjangoFilterBackend from DEFAULT_FILTER_BACKENDS. This was redundant and resulted in the DRF rendered view showing filter fields twice.
  • 62f7c31e Fix hot reloading that broke due to package upgrade. Resolves error: Uncaught ReferenceError: process is not defined.