another fix assigment
This commit is contained in:
@@ -209,7 +209,7 @@ class CreateTenant(Script):
|
|||||||
assignment = ContactAssignment(
|
assignment = ContactAssignment(
|
||||||
contact=contact,
|
contact=contact,
|
||||||
role=role,
|
role=role,
|
||||||
tenant=tenant,
|
object=tenant,
|
||||||
)
|
)
|
||||||
assignment.full_clean()
|
assignment.full_clean()
|
||||||
assignment.save()
|
assignment.save()
|
||||||
@@ -245,7 +245,7 @@ class CreateTenant(Script):
|
|||||||
assignment = ContactAssignment(
|
assignment = ContactAssignment(
|
||||||
contact=contact,
|
contact=contact,
|
||||||
role=data.get("contacts_role", ContactRole.objects.first()),
|
role=data.get("contacts_role", ContactRole.objects.first()),
|
||||||
tenant=tenant,
|
object=tenant,
|
||||||
)
|
)
|
||||||
assignment.full_clean()
|
assignment.full_clean()
|
||||||
self.log_success("Все данные валидны")
|
self.log_success("Все данные валидны")
|
||||||
|
|||||||
Reference in New Issue
Block a user