Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1791d141
Commit
1791d141
authored
Apr 20, 2017
by
John Eskew
Committed by
GitHub
Apr 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14894 from edx/jeskew/fix_more_django_19_warnings
Fix Django 1.9 deprecation warnings by adding app_label.
parents
56164669
3aa061d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
openedx/core/djangoapps/crawlers/migrations/0002_auto_20170419_0018.py
+18
-0
openedx/core/djangoapps/crawlers/models.py
+3
-0
openedx/core/djangoapps/programs/migrations/0012_auto_20170419_0018.py
+18
-0
openedx/core/djangoapps/programs/models.py
+2
-0
No files found.
openedx/core/djangoapps/crawlers/migrations/0002_auto_20170419_0018.py
0 → 100644
View file @
1791d141
# -*- 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
=
{},
),
]
openedx/core/djangoapps/crawlers/models.py
View file @
1791d141
...
...
@@ -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."
,
...
...
openedx/core/djangoapps/programs/migrations/0012_auto_20170419_0018.py
0 → 100644
View file @
1791d141
# -*- 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
=
{},
),
]
openedx/core/djangoapps/programs/models.py
View file @
1791d141
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment