- 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="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