You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Currently, the ComplementaryDocumentType model mixes both DocumentType categories, and DocumentTypes themselves. This is not very clean as it mixes two different logic in the same model. It also forces document types to be specific to a WOT (so we can't use general types such as "plan", "photo", etc.).
Instead, we should create a distinct DocumentTypeCategory model for the parent, and have the relation to the WOT directly on the child.
(hope it's clear)
The text was updated successfully, but these errors were encountered:
olivierdalang
changed the title
Refactor ComplementaryDocumentType in two separate odels
Refactor ComplementaryDocumentType in two separate models
Jun 22, 2022
Currently, the ComplementaryDocumentType model mixes both DocumentType categories, and DocumentTypes themselves. This is not very clean as it mixes two different logic in the same model. It also forces document types to be specific to a WOT (so we can't use general types such as "plan", "photo", etc.).
Instead, we should create a distinct DocumentTypeCategory model for the parent, and have the relation to the WOT directly on the child.
(hope it's clear)
The text was updated successfully, but these errors were encountered: