Revert "try running tenant save in a transaction"
This reverts commit da6dec5a61
.
This commit is contained in:
parent
3af4843b62
commit
602d340c90
|
@ -4,7 +4,7 @@ from uuid import uuid4
|
|||
|
||||
from django.apps import apps
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import models, transaction
|
||||
from django.db import models
|
||||
from django.db.utils import IntegrityError
|
||||
from django.dispatch import receiver
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
@ -85,7 +85,6 @@ class Tenant(TenantMixin, SerializerModel):
|
|||
def save(self, *args, **kwargs):
|
||||
if self.schema_name == "template":
|
||||
raise IntegrityError("Cannot create schema named template")
|
||||
with transaction.atomic():
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
|
|
Reference in New Issue