Skip to content

Commit eeaf0b3

Browse files
authored
Give import_id a default value of None on the FamilyCreateDTO (#206)
* Give import_id a default value of None on the FamilyCreateDTO * Increment patch version number
1 parent 7f3e477 commit eeaf0b3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/model/family.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class FamilyCreateDTO(BaseModel):
5757
- organisation comes from the user's organisation
5858
"""
5959

60-
import_id: Optional[str]
60+
import_id: Optional[str] = None
6161
title: str
6262
summary: str
6363
geography: str

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "admin_backend"
3-
version = "2.13.1"
3+
version = "2.13.2"
44
description = ""
55
authors = ["CPR-dev-team <[email protected]>"]
66
packages = [{ include = "app" }, { include = "tests" }]

tests/helpers/family.py

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def create_family_create_dto(
7373
if collections is None:
7474
collections = []
7575
return FamilyCreateDTO(
76-
import_id="",
7776
title=title,
7877
summary=summary,
7978
geography=geography,

0 commit comments

Comments
 (0)