Owen Nelson committed cb3aa3f

fixes #2 but might need more work. Manually creating a Target with a pk=0 means it works in test mode. Maybe want a subclass that can not be saved to db and knows to always have pk=0

  • Participants
  • Parent commits 32ab011

Comments (0)

Files changed (1)


     inlines = [TargetInline, ]
     def send_test_email(self, request, queryset):
-        tmp_target = Target(
+        # target with pk=0 means we're testing. Hits should not be counted.
+        tmp_target = Target(, pk=0)
+        # TODO: figure out a way to pass in extra_context values for this test 
         for campaign in queryset:
             tmp_target.campaign = campaign