Commit 642c500d by John Eskew

Fix Django 1.9 deprecation warnings by adding app_label.

parent b30d9f15
...@@ -9,6 +9,9 @@ from config_models.models import ConfigurationModel ...@@ -9,6 +9,9 @@ from config_models.models import ConfigurationModel
class CrawlersConfig(ConfigurationModel): class CrawlersConfig(ConfigurationModel):
"""Configuration for the crawlers django app.""" """Configuration for the crawlers django app."""
class Meta(object):
app_label = "crawlers"
known_user_agents = models.TextField( known_user_agents = models.TextField(
blank=True, blank=True,
help_text="A comma-separated list of known crawler user agents.", help_text="A comma-separated list of known crawler user agents.",
......
...@@ -13,6 +13,8 @@ class ProgramsApiConfig(ConfigurationModel): ...@@ -13,6 +13,8 @@ class ProgramsApiConfig(ConfigurationModel):
A rename to ProgramsConfig would be more accurate, but costly in terms of developer time. 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( marketing_path = models.CharField(
max_length=255, max_length=255,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment