Rest API instead of table in Django Proxy unmanaged models

In my Django arch. task I must connect multiple projects. Some can only communicate through REST API and don't have common database access. However, the task is to provide seamless communication on model level. I.e. my model should serve as a wrapper for read requests in such a way, that business layer does not see the difference between local models and models that wrap remote data. Assuming that inherited create-delete-update methods will do nothing.

I have read these:

Proxy models documentation

Unmanaged models documentation

Also documentation on creation of custom managers and querysets. However, not a single good example for what I am set to achieve.

Perhaps you can provide a solid Django example how to modify manager and query set in this way?

Back to Top