diff --git a/picampaign/campaign/tests.py b/picampaign/campaign/tests.py index 4c6419f22ac1a54eae38fbc73a1e83626c9bb105..20bac43e0ff6ce672312287b565fdca4481cad22 100644 --- a/picampaign/campaign/tests.py +++ b/picampaign/campaign/tests.py @@ -11,12 +11,12 @@ class CampaignContactMethodTests(TestCase): start_date='2000-01-01', end_date='2100-12-31' ) - contact = Contact( + contact = Contact.objects.create( first_name='Victor', last_name='Hugo', phone='+3312345678' ) - campaigncontact = Contact.objects.create( + campaigncontact = CampaignContact( campaign=campaign, contact=contact )