Ok you can add an additional column my_id and you give him the unique
property = True

Le mar. 10 sept. 2019 à 06:00, ANi <afji2...@gmail.com> a écrit :

> my real situation as an example.
>
> *local database*
> AssetModel(id, employee, name, barcode, location, value)
>
> *remote database*
> EmployeeView(id, name, department)
>
> I am thinking to set employee in AssetModel as an ForeignKey which
> references to EmployeeView.
> but it seems to be not allowed
>
>
> --
> 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/4617ae94-1cf1-42be-8441-2ba84e9d04ef%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4617ae94-1cf1-42be-8441-2ba84e9d04ef%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/CAOtSHp9trTFp8ksbv2Y_TYeTHZp0gvi%3DaakN5GhgpEhBEXJPxA%40mail.gmail.com.

Reply via email to