diff --git a/pythonpro/cohorts/migrations/0009_increase_webinar_title_length.py b/pythonpro/cohorts/migrations/0009_increase_webinar_title_length.py new file mode 100644 index 00000000..93d01578 --- /dev/null +++ b/pythonpro/cohorts/migrations/0009_increase_webinar_title_length.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2 on 2021-05-20 13:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cohorts', '0008_auto_20190307_1712'), + ] + + operations = [ + migrations.AlterField( + model_name='webinar', + name='slug', + field=models.SlugField(max_length=128, unique=True), + ), + migrations.AlterField( + model_name='webinar', + name='title', + field=models.CharField(max_length=128), + ), + ] diff --git a/pythonpro/cohorts/models.py b/pythonpro/cohorts/models.py index 2344bf1c..7c26ca83 100644 --- a/pythonpro/cohorts/models.py +++ b/pythonpro/cohorts/models.py @@ -50,10 +50,10 @@ def get_absolute_url(self): class Webinar(models.Model): cohort = models.ForeignKey(Cohort, on_delete=models.DO_NOTHING) - title = models.CharField(max_length=50) + title = models.CharField(max_length=128) speaker = models.CharField(max_length=50) speaker_title = models.CharField(max_length=50) - slug = models.SlugField(unique=True) + slug = models.SlugField(unique=True, max_length=128) vimeo_id = models.CharField(max_length=11, db_index=False, blank=True) start = models.DateTimeField() discourse_topic_id = models.CharField(max_length=11, db_index=False)