Please take a look at this <https://djangopackages.org/grids/g/multi-tenancy/> comparison grid. At least one of those packages allows automatic filtering of queries if you set it up properly. For example, each table must have that 'organisation' field to filter on it.
marți, 10 aprilie 2018, 14:04:03 UTC+3, Mauro Crociara a scris: > > Hi everyone, > > I posted this question > <https://stackoverflow.com/questions/47641181/how-to-restrict-model-objects-all-to-data-pertaining-to-one-organization> > > on Stackoverflow almost 4 months ago and asked a couple of times on #django > IRC channel on Freenode, but none gave me a suggestion about the problem. > Up to now I have no solution and no clue how to proceed. Maybe you can show > me the right direction. > > Thanks for your time and support! > Mauro > -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a38587d-8f48-48ef-b61f-44c6157f6548%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.