i would decouple the importing of data from the database architecture, and
make a meaningfould structure of the models, but your own, not the one of
the client. In this manner you create a design that is meaningful and can
be scaled from the knowledge expressed in the data without being dependant
from the logic of the client, that can change and is not reliable for an
application architecture..
My 2 cents
Agnese

On Thu, 5 May 2022 at 15:36, 'dtdave' via Django users <
django-users@googlegroups.com> wrote:

> We receive data from various third parties in their proprietary format in
> excel. We then import this into our database and our models have been
> designed around their format.
> There is no option to change the way this data is received.
> However, we now need to add an account manager to this data and under
> normal circumstances this would be a case of adding a foreign key to the
> data.
>
> What would be the best method of dealing with this given that we cannot
> change the format of the data we receive nor the current models given that
> they mirror this structure.
> One suggestion has been to use a generic foreign key but I am not sure how
> this would work.
>
> Thanks in advance
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/97d1988f-b230-46a8-93dc-be583860467an%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/97d1988f-b230-46a8-93dc-be583860467an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACXuh-QwWtrT5ndTX4fEN8mAanfg24L1Loq1coKH3p%2BkY4oTfw%40mail.gmail.com.

Reply via email to