diff --git a/apps/jetpack/models.py b/apps/jetpack/models.py index 5cc33e12..5abe455a 100644 --- a/apps/jetpack/models.py +++ b/apps/jetpack/models.py @@ -2200,9 +2200,7 @@ class SDK(BaseModel): return os.path.join(settings.SDK_SOURCE_DIR, self.dir) def is_deprecated(self): - # TODO: This should be in the settings file as a config var (or in the - # db and editable on the web) - return self.version < '1.0' + return self.version < settings.LOWEST_APPROVED_SDK def delete(self, purge=True, *args, **kwargs): """Override delete method to allow purging diff --git a/settings.py b/settings.py index a8fbc9a4..c8cef2ef 100644 --- a/settings.py +++ b/settings.py @@ -129,6 +129,8 @@ PYTHON_EXEC = 'python' # amo defaults XPI_AMO_PREFIX = "ftp://ftp.mozilla.org/pub/mozilla.org/addons/" + +LOWEST_APPROVED_SDK = "1.0" TEST_SDK = 'addon-sdk-1.0rc2' TEST_AMO_USERNAME = None TEST_AMO_PASSWORD = None