Skip to content
Snippets Groups Projects
Commit aa6a18ce authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'prepare-release-2.0rc2' into 'release/2.0'

Prepare release 2.0rc2

See merge request !89
parents 37a35b1f 9cc5e10d
No related branches found
No related tags found
1 merge request!89Prepare release 2.0rc2
Pipeline #19298 passed
...@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. ...@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_, The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_. and this project adheres to `Semantic Versioning`_.
`2.0rc2`_ - 2021-06-26
----------------------
Fixed
~~~~~
* Migration for uniqueness per site was broken due to wrong syntax.
`2.0rc1`_ - 2021-06-23 `2.0rc1`_ - 2021-06-23
---------------------- ----------------------
...@@ -66,3 +74,4 @@ Added ...@@ -66,3 +74,4 @@ Added
.. _2.0b0: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0b0 .. _2.0b0: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0b0
.. _2.0b1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0b1 .. _2.0b1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0b1
.. _2.0rc1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0rc1 .. _2.0rc1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0rc1
.. _2.0rc2: https://edugit.org/AlekSIS/Official/AlekSIS-App-Hjelp/-/tags/2.0rc2
...@@ -44,7 +44,7 @@ class Migration(migrations.Migration): ...@@ -44,7 +44,7 @@ class Migration(migrations.Migration):
), ),
migrations.AddConstraint( migrations.AddConstraint(
model_name='issuecategory', model_name='issuecategory',
constraint=models.UniqueConstraint(fields=('site_id', 'name'), condition=models.Q(parent='null'), name='unique_category_name_per_site_without_parent'), constraint=models.UniqueConstraint(fields=('site_id', 'name'), condition=models.Q(parent=None), name='unique_category_name_per_site_without_parent'),
), ),
migrations.AddConstraint( migrations.AddConstraint(
model_name='issuecategory', model_name='issuecategory',
......
...@@ -103,7 +103,7 @@ class IssueCategory(ExtensibleModel): ...@@ -103,7 +103,7 @@ class IssueCategory(ExtensibleModel):
constraints = [ constraints = [
models.UniqueConstraint( models.UniqueConstraint(
fields=["site_id", "name"], fields=["site_id", "name"],
condition=models.Q(parent="null"), condition=models.Q(parent=None),
name="unique_category_name_per_site_without_parent", name="unique_category_name_per_site_without_parent",
), ),
models.UniqueConstraint( models.UniqueConstraint(
......
[tool.poetry] [tool.poetry]
name = "AlekSIS-App-Hjelp" name = "AlekSIS-App-Hjelp"
version = "2.0rc1" version = "2.0rc2"
packages = [ packages = [
{ include = "aleksis" } { include = "aleksis" }
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment