Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
6b8a10be
Commit
6b8a10be
authored
Apr 13, 2017
by
tasawernawaz
Committed by
Tasawer Nawaz
Apr 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
course image fields migration added
ECOM-7670
parent
d7ad96ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
course_discovery/apps/publisher/migrations/0046_auto_20170413_0935.py
+29
-0
No files found.
course_discovery/apps/publisher/migrations/0046_auto_20170413_0935.py
0 → 100644
View file @
6b8a10be
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-04-13 09:35
from
__future__
import
unicode_literals
import
stdimage.models
from
django.db
import
migrations
,
models
import
course_discovery.apps.course_metadata.utils
import
course_discovery.apps.publisher.validators
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'publisher'
,
'0045_auto_20170330_0729'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'course'
,
name
=
'image'
,
field
=
stdimage
.
models
.
StdImageField
(
blank
=
True
,
null
=
True
,
upload_to
=
course_discovery
.
apps
.
course_metadata
.
utils
.
UploadToFieldNamePath
(
'number'
,
path
=
'media/publisher/courses/images'
),
validators
=
[
course_discovery
.
apps
.
publisher
.
validators
.
ImageSizeValidator
(
height
=
1192
,
width
=
2120
)]),
),
migrations
.
AlterField
(
model_name
=
'historicalcourse'
,
name
=
'image'
,
field
=
models
.
TextField
(
blank
=
True
,
max_length
=
100
,
null
=
True
,
validators
=
[
course_discovery
.
apps
.
publisher
.
validators
.
ImageSizeValidator
(
height
=
1192
,
width
=
2120
)]),
),
]
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