Revert "add max-length constraint to review title (bug 688785)"
This reverts commit 726b31cd7e
.
This commit is contained in:
Родитель
c83761acd5
Коммит
7eea35d720
|
@ -12,7 +12,7 @@ from .models import ReviewFlag, Review
|
|||
|
||||
|
||||
class ReviewReplyForm(forms.Form):
|
||||
title = forms.CharField(max_length=255, required=False)
|
||||
title = forms.CharField(required=False)
|
||||
body = forms.CharField(widget=forms.Textarea(attrs={'rows': 3}))
|
||||
|
||||
|
||||
|
|
|
@ -189,12 +189,6 @@ class TestCreate(ReviewTest):
|
|||
self.assertFormError(r, 'form', 'rating', 'This field is required.')
|
||||
eq_(len(mail.outbox), 0)
|
||||
|
||||
def test_title_maxlength(self):
|
||||
r = self.client.post(self.add, {'title': 'x' * 256})
|
||||
self.assertFormError(r, 'form', 'title',
|
||||
'Ensure this value has at most 255 characters (it has 256).')
|
||||
eq_(len(mail.outbox), 0)
|
||||
|
||||
def test_review_success(self):
|
||||
old_cnt = self.qs.count()
|
||||
log_count = self.log_count()
|
||||
|
|
Загрузка…
Ссылка в новой задаче