Ares #2

Merged
JustScreaMy merged 3 commits from ares into master 2024-01-13 12:14:31 +01:00
3 changed files with 13 additions and 25 deletions
Showing only changes of commit 69390b2de3 - Show all commits

34
poetry.lock generated
View file

@ -2,18 +2,17 @@
[[package]]
name = "ares-util"
version = "0.2.2"
version = "0.3.0"
description = "A tool for information system allowing a retrieval of information on economic entities registered in the Czech Republic (ARES - Access to Registers of Economic Subjects / Entities)."
optional = false
python-versions = "*"
files = [
{file = "ares_util-0.2.2-py2.py3-none-any.whl", hash = "sha256:ba65ed20000c73e25bd038d28837c74e5ebd47fc1ac8f5da077c8d5d44f0b2bd"},
{file = "ares_util-0.2.2.tar.gz", hash = "sha256:c4d264bb51e10d3f0e2c9553f84b3d88f23d798fc9e04823372e3524726c7055"},
{file = "ares_util-0.3.0-py2.py3-none-any.whl", hash = "sha256:1149c654981161694496dc61fd7b738f61f390577a467bbe7dc8aa74fe2a3967"},
{file = "ares_util-0.3.0.tar.gz", hash = "sha256:e90bf69b678f94502c1353ba37b19e66a8bfa5442e01704c9b225a4c48d6d885"},
]
[package.dependencies]
requests = "*"
xmltodict = "*"
[[package]]
name = "asgiref"
@ -159,17 +158,17 @@ test = ["pytest", "pytest-django"]
[[package]]
name = "django"
version = "5.0"
version = "5.0.1"
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
optional = false
python-versions = ">=3.10"
files = [
{file = "Django-5.0-py3-none-any.whl", hash = "sha256:3a9fd52b8dbeae335ddf4a9dfa6c6a0853a1122f1fb071a8d5eca979f73a05c8"},
{file = "Django-5.0.tar.gz", hash = "sha256:7d29e14dfbc19cb6a95a4bd669edbde11f5d4c6a71fdaa42c2d40b6846e807f7"},
{file = "Django-5.0.1-py3-none-any.whl", hash = "sha256:f47a37a90b9bbe2c8ec360235192c7fddfdc832206fcf618bb849b39256affc1"},
{file = "Django-5.0.1.tar.gz", hash = "sha256:8c8659665bc6e3a44fefe1ab0a291e5a3fb3979f9a8230be29de975e57e8f854"},
]
[package.dependencies]
asgiref = ">=3.7.0"
asgiref = ">=3.7.0,<4"
sqlparse = ">=0.3.1"
tzdata = {version = "*", markers = "sys_platform == \"win32\""}
@ -241,13 +240,13 @@ test = ["pytest", "pytest-cov"]
[[package]]
name = "tzdata"
version = "2023.3"
version = "2023.4"
description = "Provider of IANA time zone data"
optional = false
python-versions = ">=2"
files = [
{file = "tzdata-2023.3-py2.py3-none-any.whl", hash = "sha256:7e65763eef3120314099b6939b5546db7adce1e7d6f2e179e3df563c70511eda"},
{file = "tzdata-2023.3.tar.gz", hash = "sha256:11ef1e08e54acb0d4f95bdb1be05da659673de4acbd21bf9c69e94cc5e907a3a"},
{file = "tzdata-2023.4-py2.py3-none-any.whl", hash = "sha256:aa3ace4329eeacda5b7beb7ea08ece826c28d761cda36e747cfbf97996d39bf3"},
{file = "tzdata-2023.4.tar.gz", hash = "sha256:dd54c94f294765522c77399649b4fefd95522479a664a0cec87f41bebc6148c9"},
]
[[package]]
@ -266,18 +265,7 @@ brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
zstd = ["zstandard (>=0.18.0)"]
[[package]]
name = "xmltodict"
version = "0.13.0"
description = "Makes working with XML feel like you are working with JSON"
optional = false
python-versions = ">=3.4"
files = [
{file = "xmltodict-0.13.0-py2.py3-none-any.whl", hash = "sha256:aa89e8fd76320154a40d19a0df04a4695fb9dc5ba977cbb68ab3e4eb225e7852"},
{file = "xmltodict-0.13.0.tar.gz", hash = "sha256:341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56"},
]
[metadata]
lock-version = "2.0"
python-versions = "^3.12"
content-hash = "597652155f8c0aa71c8f294edb652c38e81be74dec44b05c19d5a4f8c5f9759d"
content-hash = "cf882708b341170fa02db4115bf2eeec4f2d0a97e468ab04136f4391ca1f9d20"

View file

@ -11,7 +11,7 @@ python = "^3.12"
django = "^5.0"
crispy-bootstrap5 = "^2023.10"
django-crispy-forms = "^2.1"
ares-util = "^0.2.2"
ares-util = "^0.3.0"
[build-system]

View file

@ -31,7 +31,7 @@ class CreateSubjectForm(forms.Form):
cin = self.cleaned_data.get("cin")
try:
validate_czech_company_id(cin)
except InvalidCompanyIDError as ex:
except InvalidCompanyIDError:
raise ValidationError(
self.error_messages["invalid_cin"]
)