From 32e5dafb93841c8efa3ddb3a1fbeea6b162d3886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 10 Dec 2024 13:46:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Make=20Insta=20comment?= =?UTF-8?q?=20username=20nullable,=20since=20they=20all=20seem=20to=20be?= =?UTF-8?q?=20missing=20from=20quintly=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0089_alter_instacomment_username.py | 21 +++++++++++++++++++ okr/models/insta.py | 1 + 2 files changed, 22 insertions(+) create mode 100644 okr/migrations/0089_alter_instacomment_username.py diff --git a/okr/migrations/0089_alter_instacomment_username.py b/okr/migrations/0089_alter_instacomment_username.py new file mode 100644 index 0000000..cdf7e92 --- /dev/null +++ b/okr/migrations/0089_alter_instacomment_username.py @@ -0,0 +1,21 @@ +# Generated by Django 5.0.7 on 2024-12-10 12:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("okr", "0088_alter_youtubetrafficsource_source_type"), + ] + + operations = [ + migrations.AlterField( + model_name="instacomment", + name="username", + field=models.TextField( + help_text="Username der Kommentarverfasser*in", + null=True, + verbose_name="Username", + ), + ), + ] diff --git a/okr/models/insta.py b/okr/models/insta.py index a5d153e..83c27f9 100644 --- a/okr/models/insta.py +++ b/okr/models/insta.py @@ -539,6 +539,7 @@ class Meta: username = models.TextField( verbose_name="Username", help_text="Username der Kommentarverfasser*in", + null=True, # Werden wohl von Quintly nicht mehr geliefert ) message_length = models.IntegerField(