Commit e95c4f16 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Fix migrations for CourseCategory and CourseTrack

parent 1c221fda
# Generated by Django 2.2.17 on 2021-02-02 19:55
# Generated by Django 2.2.17 on 2021-02-05 13:24
import autoslug.fields
from django.db import migrations, models
......@@ -22,6 +22,10 @@ class Migration(migrations.Migration):
('color', models.CharField(blank=True, help_text='Title color in hex format (i.e: #1aafd0).', max_length=7, verbose_name='color')),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.CourseCategory', verbose_name='course category parent')),
],
options={
'verbose_name': 'Course Category',
'verbose_name_plural': 'Course Categories',
},
),
migrations.AddField(
model_name='course',
......
# Generated by Django 2.2.17 on 2021-02-02 20:40
# Generated by Django 2.2.17 on 2021-02-05 13:25
import autoslug.fields
from django.db import migrations, models
......@@ -7,7 +7,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0018_auto_20210202_1655'),
('courses', '0018_auto_20210205_1024'),
]
operations = [
......@@ -15,8 +15,9 @@ class Migration(migrations.Migration):
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')),
('name', models.CharField(max_length=255, verbose_name='Name')),
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True, verbose_name='Slug')),
('home_position', models.IntegerField(null=True)),
('courses', models.ManyToManyField(blank=True, to='courses.Course', verbose_name='courses')),
],
options={
......
# 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),
),
]
......@@ -336,7 +336,6 @@ class CourseTrack(models.Model):
name = models.CharField(
_('Name'),
max_length=255,
blank=True,
)
slug = AutoSlugField(
_('Slug'),
......@@ -350,7 +349,6 @@ class CourseTrack(models.Model):
)
home_position = models.IntegerField(
null=True,
blank=True,
)
class Meta:
......
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