This commit is contained in:
Wil Clouser 2011-04-14 10:47:51 -07:00
Родитель 87a73410e9
Коммит 3a0d2c93b0
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -485,7 +485,7 @@ class BaseFileFormSet(BaseModelFormSet):
if amo.PLATFORM_ALL.id in platforms and len(files) > 1:
raise forms.ValidationError(
_('The platfom All cannot be combined '
_('The platform All cannot be combined '
'with specific platforms.'))
if sorted(platforms) != sorted(set(platforms)):

Просмотреть файл

@ -518,7 +518,7 @@ class TestVersionEditFiles(TestVersionEdit):
forms = map(initial, forms)
res = self.client.post(self.url, self.formset(*forms, prefix='files'))
eq_(res.context['file_form'].non_form_errors()[0],
'The platfom All cannot be combined with specific platforms.')
'The platform All cannot be combined with specific platforms.')
def test_all_platforms_and_delete(self):
File.objects.create(version=self.version,