Commit 75f03327 by Awais Committed by Awais Qureshi

Add title and full desc override fields in course-run model.

EDUCATOR-717
parent 05965a08
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-21 17:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publisher', '0055_auto_20170620_1500'),
]
operations = [
migrations.AddField(
model_name='courserun',
name='full_description_override',
field=models.TextField(blank=True, default=None, help_text="Full description specific for this run of a course. Leave this value blank to default to the parent course's full_description attribute.", null=True),
),
migrations.AddField(
model_name='courserun',
name='title_override',
field=models.CharField(blank=True, default=None, help_text="Title specific for this run of a course. Leave this value blank to default to the parent course's title.", max_length=255, null=True),
),
migrations.AddField(
model_name='historicalcourserun',
name='full_description_override',
field=models.TextField(blank=True, default=None, help_text="Full description specific for this run of a course. Leave this value blank to default to the parent course's full_description attribute.", null=True),
),
migrations.AddField(
model_name='historicalcourserun',
name='title_override',
field=models.CharField(blank=True, default=None, help_text="Title specific for this run of a course. Leave this value blank to default to the parent course's title.", max_length=255, null=True),
),
]
...@@ -300,6 +300,17 @@ class CourseRun(TimeStampedModel, ChangedByMixin): ...@@ -300,6 +300,17 @@ class CourseRun(TimeStampedModel, ChangedByMixin):
"Short description specific for this run of a course. Leave this value blank to default to " "Short description specific for this run of a course. Leave this value blank to default to "
"the parent course's short_description attribute.")) "the parent course's short_description attribute."))
title_override = models.CharField(
max_length=255, default=None, null=True, blank=True,
help_text=_(
"Title specific for this run of a course. Leave this value blank to default to the parent course's title."))
full_description_override = models.TextField(
default=None, null=True, blank=True,
help_text=_(
"Full description specific for this run of a course. Leave this value blank to default to "
"the parent course's full_description attribute."))
history = HistoricalRecords() history = HistoricalRecords()
def __str__(self): def __str__(self):
......
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