Hi,
I'm trying to integrate a legacy database in Django.
I'm running into problems with some weird tables that result from horribly bad database design, but I'm not free to change it.
The problem is that there are tables that dont have a primarykey ID, but a product ID and, here comes the problem, a lot of them are multiple in case of a certain column needs to have multiple values, for example
ID | ... | namestring
2 | ... | name1
2 | ... | name2
Is there a possibility to circumvent the usual primarykey behavior and write a function that returns an object for such an ID with multiple rows ? The column namestring could become a list then.
There is no manual editing required, as this is exported data from another system, I just have to access it..
Thanks for any hints !