Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

We follow [Semantic Versions](https://semver.org/) starting at the `0.4.0` release.

## 2.1.3 (2025-09-23)

## What's Changed
* Fix: schema_required decorator connection state restoration in [#860](https://github.com/Corvia/django-tenant-users/pull/860)

## 2.1.2 (2025-09-12)

## What's Changed
Expand Down
7 changes: 6 additions & 1 deletion django_test_app/companies/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.db import models
from django_tenants.models import DomainMixin

from tenant_users.tenants.models import TenantBase
from tenant_users.tenants.models import TenantBase, schema_required

_NameFieldLength = 64

Expand All @@ -13,6 +13,11 @@ class Company(TenantBase):
description = models.TextField()
type = models.CharField(max_length=100, default="type1")

@schema_required
def test_schema_method(self):
"""Simple test method to validate @schema_required behavior."""
return f"Called on tenant: {self.schema_name}"


class Domain(DomainMixin):
"""This class is required for django_tenants."""
Loading
Loading