django-scopes
django-scopes copied to clipboard
Safely separate multiple tenants in a Django database
Hello, the dumpdata command does not work with scopes. So I disabled scopes for this command. ```python from django.core.management.commands.dumpdata import Command as DumpdataCommand from django_scopes import scopes_disabled class Command(DumpdataCommand): def...
Hi @raphaelm - I'm working on a multi-tenancy app in which there is a many-to-many relationship between users and tenants. Is this the correct way to represent it in django-scopes?...
HI there, Just trying to take advantage of this app, but a number of my models already have custom QuerySets, which get added as managers by `objects = ObjectQuerySet.as_manager()`, however,...
It's not DRY to have to explicitly handle ForeignKeys and ManyToMany in ModelForms with SafeModelChoiceField and SafeModelManyToManyField: class PostMethodForm(ModelForm): class Meta: model = Comment field_classes = { 'post': SafeModelChoiceField, }...
Hi @raphaelm First off, thanks for creating this package! I'm having an issue when trying to apply scopes to the user model. I have a multi-tenancy application, and I only...
I have scoping on a location field for a user subset. They can only see data that belongs to locations that they are assigned to. However there are some cases...
Hi there, As discussed during the DjangoCon, here my remarks as a proper ticket. Currently, the README-file suggest to the scopes manager is set as the `objects` on the models....
There seems to be a problem with using this package along with django's admin. If I try to view the listing for a scoped model, I get: "Database error Something's...
I can see it on PyPi, but it has not been tagged in `git`. We are packaging this project from source, and a tagged release would simplify our (package managers)...
Does the library work with async views? Working with Django 4.2 using django-ninja and drf