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
4e80415d
Commit
4e80415d
authored
Jan 16, 2017
by
Ahsan Ulhaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make statement field in corporate endorsement not required
ECOM-6544
parent
867c39b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
course_discovery/apps/course_metadata/migrations/0042_auto_20170119_0918.py
+20
-0
course_discovery/apps/course_metadata/models.py
+1
-1
No files found.
course_discovery/apps/course_metadata/migrations/0042_auto_20170119_0918.py
0 → 100644
View file @
4e80415d
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2017-01-19 09:18
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'course_metadata'
,
'0041_organization_certificate_logo_image_url'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'corporateendorsement'
,
name
=
'statement'
,
field
=
models
.
TextField
(
blank
=
True
,
null
=
True
),
),
]
course_discovery/apps/course_metadata/models.py
View file @
4e80415d
...
...
@@ -558,7 +558,7 @@ class Endorsement(TimeStampedModel):
class
CorporateEndorsement
(
TimeStampedModel
):
corporation_name
=
models
.
CharField
(
max_length
=
128
,
blank
=
False
,
null
=
False
)
statement
=
models
.
TextField
(
blank
=
False
,
null
=
Fals
e
)
statement
=
models
.
TextField
(
null
=
True
,
blank
=
Tru
e
)
image
=
models
.
ForeignKey
(
Image
,
blank
=
True
,
null
=
True
)
individual_endorsements
=
SortedManyToManyField
(
Endorsement
)
...
...
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