PHACDataHub / django-phac_aspc-helpers

Provides a series of helpers to provide a consistent experience accross PHAC-ASPC's Django based projects.
MIT License
0 stars 0 forks source link

CsvTextField #83

Open AlexCLeduc opened 9 months ago

AlexCLeduc commented 9 months ago

For single-choices fields, we typically use CharField with the choices kwarg. Sometimes there are good reasons to make these foreign-keys to a lookup table, but hard-coded choices are typically easier and much faster to put together.

It would be nice if we could do the same with multiple-choice fields, in other words replacing many-to-many fields. What I'm thinking is:

The main advantages here are

A few challenges I could think of are:

AlexCLeduc commented 9 months ago

Ok this turned out to be simpler than I thought, we have a prototype in catalogue, if we don't run into issues I will add it to this package