diff --git a/strr-api/pyproject.toml b/strr-api/pyproject.toml index b9d6448c..05ec189f 100644 --- a/strr-api/pyproject.toml +++ b/strr-api/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "strr-api" -version = "0.0.11" +version = "0.0.12" description = "" authors = ["thorwolpert "] license = "BSD 3-Clause" diff --git a/strr-api/src/strr_api/responses/RegistrationSerializer.py b/strr-api/src/strr_api/responses/RegistrationSerializer.py index 1ebdc606..bcf55011 100644 --- a/strr-api/src/strr_api/responses/RegistrationSerializer.py +++ b/strr-api/src/strr_api/responses/RegistrationSerializer.py @@ -112,7 +112,11 @@ def populate_host_registration_details(cls, registration_data: dict, registratio registration_data["unitDetails"] = { "parcelIdentifier": registration.rental_property.parcel_identifier, "businessLicense": registration.rental_property.local_business_licence, - "businessLicenseExpiryDate": registration.rental_property.local_business_licence_expiry_date, + "businessLicenseExpiryDate": registration.rental_property.local_business_licence_expiry_date.strftime( + "%Y-%m-%d" + ) + if registration.rental_property.local_business_licence_expiry_date + else None, "propertyType": registration.rental_property.property_type.name, "ownershipType": registration.rental_property.ownership_type.name, }