Commit d2e0ee15 by Awais Committed by Awais Qureshi

Adding new field in publisher-course-run table.

EDUCATOR-703
parent fea9cc12
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-20 15:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publisher', '0054_auto_20170605_0953'),
]
operations = [
migrations.AddField(
model_name='courserun',
name='short_description_override',
field=models.CharField(blank=True, default=None, help_text="Short description specific for this run of a course. Leave this value blank to default to the parent course's short_description attribute.", max_length=255, null=True),
),
migrations.AddField(
model_name='historicalcourserun',
name='short_description_override',
field=models.CharField(blank=True, default=None, help_text="Short description specific for this run of a course. Leave this value blank to default to the parent course's short_description attribute.", max_length=255, null=True),
),
]
......@@ -285,6 +285,12 @@ class CourseRun(TimeStampedModel, ChangedByMixin):
# will be used to download the image and save into course model --> course image.
card_image_url = models.URLField(null=True, blank=True, verbose_name='canonical course run image')
short_description_override = models.CharField(
max_length=255, default=None, null=True, blank=True,
help_text=_(
"Short description specific for this run of a course. Leave this value blank to default to "
"the parent course's short_description attribute."))
history = HistoricalRecords()
def __str__(self):
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 16:39+0500\n"
"POT-Creation-Date: 2017-06-21 13:39+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -311,7 +311,7 @@ msgid ""
"to the parent course's title."
msgstr ""
#: apps/course_metadata/models.py
#: apps/course_metadata/models.py apps/publisher/models.py
msgid ""
"Short description specific for this run of a course. Leave this value blank "
"to default to the parent course's short_description attribute."
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 16:39+0500\n"
"POT-Creation-Date: 2017-06-21 13:39+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 16:39+0500\n"
"POT-Creation-Date: 2017-06-21 13:39+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -372,7 +372,7 @@ msgstr ""
"Tïtlé spéçïfïç för thïs rün öf ä çöürsé. Léävé thïs välüé ßlänk tö défäült "
"tö thé pärént çöürsé's tïtlé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
#: apps/course_metadata/models.py
#: apps/course_metadata/models.py apps/publisher/models.py
msgid ""
"Short description specific for this run of a course. Leave this value blank "
"to default to the parent course's short_description attribute."
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-20 16:39+0500\n"
"POT-Creation-Date: 2017-06-21 13:39+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment