diff --git a/apps/editors/forms.py b/apps/editors/forms.py index e1f5ab5f11..840c992182 100644 --- a/apps/editors/forms.py +++ b/apps/editors/forms.py @@ -236,8 +236,10 @@ class ReviewAddonForm(happyforms.Form): super(ReviewAddonForm, self).__init__(*args, **kw) self.fields['addon_files'].queryset = self.helper.all_files self.addon_files_disabled = (self.helper.all_files - .filter(status=amo.STATUS_DISABLED) - .values_list('pk', flat=True)) + # We can't review disabled, and public are already reviewed. + .filter(status__in=[amo.STATUS_DISABLED, amo.STATUS_PUBLIC]) + .values_list('pk', flat=True)) + # We're starting with an empty one, which will be hidden via CSS. canned_choices = [['', [('', _('Choose a canned response...'))]]] diff --git a/apps/editors/helpers.py b/apps/editors/helpers.py index 106bf6d7ca..de883388b5 100644 --- a/apps/editors/helpers.py +++ b/apps/editors/helpers.py @@ -22,11 +22,13 @@ from editors.sql_table import SQLTable @register.function def file_review_status(addon, file): if file.status not in [amo.STATUS_DISABLED]: - if addon.status in [amo.STATUS_UNREVIEWED, amo.STATUS_LITE]: + if file.status in [amo.STATUS_UNREVIEWED, amo.STATUS_LITE]: return _(u'Pending Preliminary Review') - elif addon.status in [amo.STATUS_NOMINATED, - amo.STATUS_LITE_AND_NOMINATED, - amo.STATUS_PUBLIC]: + elif file.status in [amo.STATUS_PUBLIC]: + return _(u'Fully Reviewed') + elif file.status in [amo.STATUS_NOMINATED, + amo.STATUS_LITE_AND_NOMINATED, + amo.STATUS_PUBLIC]: return _(u'Pending Full Review') return amo.STATUS_CHOICES[file.status] diff --git a/apps/editors/templates/editors/review.html b/apps/editors/templates/editors/review.html index e7d08e9d49..674c362c67 100644 --- a/apps/editors/templates/editors/review.html +++ b/apps/editors/templates/editors/review.html @@ -133,11 +133,11 @@