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
642c500d
Commit
642c500d
authored
Apr 14, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Django 1.9 deprecation warnings by adding app_label.
parent
b30d9f15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
openedx/core/djangoapps/crawlers/models.py
+3
-0
openedx/core/djangoapps/programs/models.py
+2
-0
No files found.
openedx/core/djangoapps/crawlers/models.py
View file @
642c500d
...
@@ -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."
,
...
...
openedx/core/djangoapps/programs/models.py
View file @
642c500d
...
@@ -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
,
...
...
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