Skip to content

Commit e32d346

Browse files
committed
Fix security_hash problem in nomcom tests, it's no longer a separate function
- Legacy-Id: 6905
1 parent 191d6f5 commit e32d346

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/nomcom/tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from django.db import IntegrityError
88
from django.core.urlresolvers import reverse
99
from django.core.files import File
10-
from django.contrib.formtools.preview import security_hash
1110
from django.contrib.auth.models import User
1211

1312
from ietf.utils.test_utils import login_testing_unauthorized
@@ -286,7 +285,7 @@ def change_members(self, members):
286285
# preview
287286
self.client.post(self.edit_members_url, test_data)
288287

289-
hash = security_hash(None, EditMembersForm(test_data))
288+
hash = EditChairFormPreview().security_hash(None, EditMembersForm(test_data))
290289
test_data.update({'hash': hash, 'stage': 2})
291290

292291
# submit
@@ -315,7 +314,7 @@ def change_chair(self, user):
315314
# preview
316315
self.client.post(self.edit_chair_url, test_data)
317316

318-
hash = security_hash(None, EditChairForm(test_data))
317+
hash = EditChairFormPreview().security_hash(None, EditChairForm(test_data))
319318
test_data.update({'hash': hash, 'stage': 2})
320319

321320
# submit

0 commit comments

Comments
 (0)