Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Refactor ComplementaryDocumentType in two separate models #526

@olivierdalang

Description

@olivierdalang

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions