From e87bb74c228a78b39c0650d2367aa9426c497000 Mon Sep 17 00:00:00 2001 From: John Eskew Date: Thu, 25 Feb 2016 17:34:31 -0500 Subject: [PATCH] Add app_label to models to prevent Django1.9 warnings. --- lms/djangoapps/commerce/models.py | 3 +++ openedx/core/djangoapps/credentials/models.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lms/djangoapps/commerce/models.py b/lms/djangoapps/commerce/models.py index 3a78bc0841..287ea91964 100644 --- a/lms/djangoapps/commerce/models.py +++ b/lms/djangoapps/commerce/models.py @@ -10,6 +10,9 @@ from config_models.models import ConfigurationModel class CommerceConfiguration(ConfigurationModel): """ Commerce configuration """ + class Meta(object): + app_label = "commerce" + checkout_on_ecommerce_service = models.BooleanField( default=False, help_text=_('Use the checkout page hosted by the E-Commerce service.') diff --git a/openedx/core/djangoapps/credentials/models.py b/openedx/core/djangoapps/credentials/models.py index 630bfa41f5..1f8f00a385 100644 --- a/openedx/core/djangoapps/credentials/models.py +++ b/openedx/core/djangoapps/credentials/models.py @@ -15,6 +15,9 @@ class CredentialsApiConfig(ConfigurationModel): Manages configuration for connecting to the Credential service and using its API. """ + class Meta(object): + app_label = "credentials" + OAUTH2_CLIENT_NAME = 'credentials' API_NAME = 'credentials' CACHE_KEY = 'credentials.api.data'