diff --git a/boards/migrations/0005_auto_20200119_1554.py b/boards/migrations/0005_auto_20200119_1554.py new file mode 100644 index 0000000..a87996a --- /dev/null +++ b/boards/migrations/0005_auto_20200119_1554.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.8 on 2020-01-19 15:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('boards', '0004_auto_20200107_1904'), + ] + + operations = [ + migrations.AlterField( + model_name='board', + name='curator_title', + field=models.CharField(max_length=120, null=True), + ), + ] diff --git a/boards/models.py b/boards/models.py index a9fc0f9..731aba9 100644 --- a/boards/models.py +++ b/boards/models.py @@ -16,7 +16,7 @@ class Board(models.Model): avatar = models.URLField(max_length=512, null=True) curator_name = models.CharField(max_length=120) - curator_title = models.CharField(max_length=120) + curator_title = models.CharField(max_length=120, null=True) curator_url = models.URLField(null=True) curator_bio = models.CharField(max_length=120, null=True) curator_footer = models.TextField(null=True) diff --git a/templates/index.html b/templates/index.html index 12ddca3..5fa2422 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,9 @@ {{ board.curator_name }} - {{ board.curator_title }} + {% if board.curator_title %} + {{ board.curator_title }} + {% endif %} {% endfor %}