Fix Django 1.9 deprecation warnings by adding app_label.

This commit is contained in:
John Eskew
2017-04-14 10:28:53 -04:00
parent b30d9f1581
commit 642c500d60
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,9 @@ from config_models.models import ConfigurationModel
class CrawlersConfig(ConfigurationModel):
"""Configuration for the crawlers django app."""
class Meta(object):
app_label = "crawlers"
known_user_agents = models.TextField(
blank=True,
help_text="A comma-separated list of known crawler user agents.",

View File

@@ -13,6 +13,8 @@ class ProgramsApiConfig(ConfigurationModel):
A rename to ProgramsConfig would be more accurate, but costly in terms of developer time.
"""
class Meta(object):
app_label = "programs"
marketing_path = models.CharField(
max_length=255,