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
5dd94cf2
Commit
5dd94cf2
authored
Jan 17, 2017
by
Clinton Blackburn
Committed by
Clinton Blackburn
Jan 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the certificate_logo_image_url field to the Organization model
ECOM-6858
parent
537d8175
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
4 deletions
+43
-4
course_discovery/apps/course_metadata/migrations/0041_organization_certificate_logo_image_url.py
+20
-0
course_discovery/apps/course_metadata/models.py
+4
-0
course_discovery/apps/course_metadata/tests/factories.py
+1
-0
course_discovery/conf/locale/en/LC_MESSAGES/django.mo
+0
-0
course_discovery/conf/locale/en/LC_MESSAGES/django.po
+8
-2
course_discovery/conf/locale/eo/LC_MESSAGES/django.mo
+0
-0
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
+10
-2
No files found.
course_discovery/apps/course_metadata/migrations/0041_organization_certificate_logo_image_url.py
0 → 100644
View file @
5dd94cf2
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2017-01-17 21:14
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'course_metadata'
,
'0040_auto_20161220_1644'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'organization'
,
name
=
'certificate_logo_image_url'
,
field
=
models
.
URLField
(
blank
=
True
,
help_text
=
'Logo to be displayed on certificates. If this logo is the same as logo_image_url, copy and paste the same value to both fields.'
,
null
=
True
),
),
]
course_discovery/apps/course_metadata/models.py
View file @
5dd94cf2
...
@@ -162,6 +162,10 @@ class Organization(TimeStampedModel):
...
@@ -162,6 +162,10 @@ class Organization(TimeStampedModel):
homepage_url
=
models
.
URLField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
homepage_url
=
models
.
URLField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
logo_image_url
=
models
.
URLField
(
null
=
True
,
blank
=
True
)
logo_image_url
=
models
.
URLField
(
null
=
True
,
blank
=
True
)
banner_image_url
=
models
.
URLField
(
null
=
True
,
blank
=
True
)
banner_image_url
=
models
.
URLField
(
null
=
True
,
blank
=
True
)
certificate_logo_image_url
=
models
.
URLField
(
null
=
True
,
blank
=
True
,
help_text
=
_
(
'Logo to be displayed on certificates. If this logo is the same as '
'logo_image_url, copy and paste the same value to both fields.'
)
)
tags
=
TaggableManager
(
blank
=
True
)
tags
=
TaggableManager
(
blank
=
True
)
...
...
course_discovery/apps/course_metadata/tests/factories.py
View file @
5dd94cf2
...
@@ -157,6 +157,7 @@ class OrganizationFactory(factory.DjangoModelFactory):
...
@@ -157,6 +157,7 @@ class OrganizationFactory(factory.DjangoModelFactory):
homepage_url
=
FuzzyURL
()
homepage_url
=
FuzzyURL
()
logo_image_url
=
FuzzyURL
()
logo_image_url
=
FuzzyURL
()
banner_image_url
=
FuzzyURL
()
banner_image_url
=
FuzzyURL
()
certificate_logo_image_url
=
FuzzyURL
()
partner
=
factory
.
SubFactory
(
PartnerFactory
)
partner
=
factory
.
SubFactory
(
PartnerFactory
)
marketing_url_path
=
FuzzyText
()
marketing_url_path
=
FuzzyText
()
...
...
course_discovery/conf/locale/en/LC_MESSAGES/django.mo
View file @
5dd94cf2
No preview for this file type
course_discovery/conf/locale/en/LC_MESSAGES/django.po
View file @
5dd94cf2
...
@@ -7,14 +7,14 @@ msgid ""
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-18 1
2:59+
0500\n"
"POT-Creation-Date: 2017-01-18 1
1:20-
0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: apps/api/filters.py
#: apps/api/filters.py
#, python-brace-format
#, python-brace-format
...
@@ -268,6 +268,12 @@ msgid "Leave this field blank to have the value generated automatically."
...
@@ -268,6 +268,12 @@ msgid "Leave this field blank to have the value generated automatically."
msgstr ""
msgstr ""
#: apps/course_metadata/models.py
#: apps/course_metadata/models.py
msgid ""
"Logo to be displayed on certificates. If this logo is the same as "
"logo_image_url, copy and paste the same value to both fields."
msgstr ""
#: apps/course_metadata/models.py
msgid "People"
msgid "People"
msgstr ""
msgstr ""
...
...
course_discovery/conf/locale/eo/LC_MESSAGES/django.mo
View file @
5dd94cf2
No preview for this file type
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
View file @
5dd94cf2
...
@@ -7,14 +7,14 @@ msgid ""
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-18 1
2:59+
0500\n"
"POT-Creation-Date: 2017-01-18 1
1:20-
0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: apps/api/filters.py
#: apps/api/filters.py
...
@@ -321,6 +321,14 @@ msgstr ""
...
@@ -321,6 +321,14 @@ msgstr ""
"ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
"ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: apps/course_metadata/models.py
#: apps/course_metadata/models.py
msgid ""
"Logo to be displayed on certificates. If this logo is the same as "
"logo_image_url, copy and paste the same value to both fields."
msgstr ""
"Lögö tö ßé dïspläýéd ön çértïfïçätés. Ìf thïs lögö ïs thé sämé äs "
"lögö_ïmägé_ürl, çöpý änd pästé thé sämé välüé tö ßöth fïélds. Ⱡ'σяє#"
#: apps/course_metadata/models.py
msgid "People"
msgid "People"
msgstr "Péöplé Ⱡ'σяєм ιρѕυ#"
msgstr "Péöplé Ⱡ'σяєм ιρѕυ#"
...
...
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