summaryrefslogtreecommitdiff
path: root/tests/validation
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation')
-rw-r--r--tests/validation/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/validation/tests.py b/tests/validation/tests.py
index bc23ac5808..46fe2f0c7b 100644
--- a/tests/validation/tests.py
+++ b/tests/validation/tests.py
@@ -83,8 +83,9 @@ class ArticleForm(forms.ModelForm):
class ModelFormsTests(TestCase):
- def setUp(self):
- self.author = Author.objects.create(name='Joseph Kocherhans')
+ @classmethod
+ def setUpTestData(cls):
+ cls.author = Author.objects.create(name='Joseph Kocherhans')
def test_partial_validation(self):
# Make sure the "commit=False and set field values later" idiom still