geocity icon indicating copy to clipboard operation
geocity copied to clipboard

Refactor ComplementaryDocumentType in two separate models

Open olivierdalang opened this issue 3 years ago • 2 comments

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)

olivierdalang avatar Jun 22 '22 12:06 olivierdalang

@AlexandreJunod is it fixed via #642?

rbovard avatar Dec 14 '22 08:12 rbovard

@rbovard The user interface has been improved by creating separate views, but the model has not been modified

AlexandreJunod avatar Jan 03 '23 16:01 AlexandreJunod