Use set with project_manager

This commit is contained in:
Andreas Zweili 2023-03-11 17:32:33 +01:00
parent dd9ce6c1df
commit 9a8244e256
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def test_customer_detail_view(create_admin_user):
project_manager = User.objects.create_superuser(
"meyer", "meyer@contria.com", "password"
)
customer.project_manager = project_manager
customer.project_manager.set(project_manager)
customer.save()
client = Client()
client.login(username="pharma-admin", password="password")