Commit 2b488810 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add migrations for course track

parent be68cbd0
# Generated by Django 2.2.17 on 2021-02-02 20:40
import autoslug.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0018_auto_20210202_1655'),
]
operations = [
migrations.CreateModel(
name='CourseTrack',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=255, verbose_name='Name')),
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True, verbose_name='Slug')),
('courses', models.ManyToManyField(blank=True, to='courses.Course', verbose_name='courses')),
],
options={
'verbose_name': 'Course Track',
'verbose_name_plural': 'Course Tracks',
},
),
]
# Generated by Django 2.2.16 on 2021-02-03 13:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0019_coursetrack'),
]
operations = [
migrations.AlterModelOptions(
name='coursecategory',
options={'verbose_name': 'Course Category', 'verbose_name_plural': 'Course Categories'},
),
]
# Generated by Django 2.2.16 on 2021-02-03 14:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0020_auto_20210203_1009'),
]
operations = [
migrations.AddField(
model_name='coursetrack',
name='home_position',
field=models.IntegerField(blank=True, null=True),
),
]
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