citusdata / citusdata/django-multitenant

admin objects filtered with tenant mixin

Open
#128 1 comment 0 reactions 0 assignees View on GitHub
needs clarification question
Dominant language
Python
Stars
823
Forks
126
PR merge metrics
No merged PRs in 30d

Description

Tenant model should be like this to handle admin objects filtering in admin panel.

```
class TenantModel(TenantModelMixin, models.Model):
# Abstract model which all the models related to tenant inherit.

**admin_objects = models.Manager()**
objects = TenantManager()

class Meta:
abstract = True
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.