Merge pull request #14894 from edx/jeskew/fix_more_django_19_warnings
Fix Django 1.9 deprecation warnings by adding app_label.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('crawlers', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='crawlersconfig',
|
||||
options={},
|
||||
),
|
||||
]
|
||||
@@ -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.",
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('programs', '0011_auto_20170301_1844'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='programsapiconfig',
|
||||
options={},
|
||||
),
|
||||
]
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user