-
-
Save jeffgca/4962904 to your computer and use it in GitHub Desktop.
Add support to email all extension developers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/zadmin/forms.py b/apps/zadmin/forms.py | |
index 366e8af..5395ac2 100644 | |
--- a/apps/zadmin/forms.py | |
+++ b/apps/zadmin/forms.py | |
@@ -37,7 +37,8 @@ class DevMailerForm(happyforms.Form): | |
('payments', | |
'Developers of non-deleted apps (not add-ons) with payments'), | |
('desktop_apps', | |
- 'Developers of non-deleted apps supported on desktop')] | |
+ 'Developers of non-deleted apps supported on desktop') | |
+ ('all_extensions', 'All extension developers')] | |
recipients = forms.ChoiceField(choices=_choices, required=True) | |
subject = forms.CharField(widget=forms.TextInput(attrs=dict(size='100')), | |
required=True) | |
diff --git a/apps/zadmin/views.py b/apps/zadmin/views.py | |
index 6902059..45a32be 100644 | |
--- a/apps/zadmin/views.py | |
+++ b/apps/zadmin/views.py | |
@@ -674,6 +674,8 @@ def email_devs(request): | |
addon__addondevicetype__device_type=amo.DEVICE_DESKTOP.id)) | |
elif data['recipients'] == 'sdk': | |
qs = qs.exclude(addon__versions__files__jetpack_version=None) | |
+ elif data['recipients'] == 'addons_all': | |
+ qs = qs.filter(addon__type=amo.ADDON_EXTENSION) | |
else: | |
raise NotImplementedError('If you want to support emailing other ' | |
'types of developers, do it here!') | |
diff --git a/vendor b/vendor | |
index dbf0a86..90b5c29 160000 | |
--- a/vendor | |
+++ b/vendor | |
@@ -1 +1 @@ | |
-Subproject commit dbf0a86d5f0043170b1a77a9fadbb408ba4a06df | |
+Subproject commit 90b5c295f0c63906d8ea9434e88c15c27b5636c2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment