Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update `ContentSource` to match `MediaMixin` (#4854)
Olga Bulat18f431352769
diff --git a/api/api/migrations/0069_alter_contentsource_source_identifier.py b/api/api/migrations/0069_alter_contentsource_source_identifier.pynew file mode 100644index 000000000..f05e00721--- /dev/null+++ b/api/api/migrations/0069_alter_contentsource_source_identifier.py@@ -0,0 +1,18 @@+# Generated by Django 4.2.11 on 2024-09-05 14:06++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('api', '0068_remove_audioreport_status_remove_imagereport_status'),+ ]++ operations = [+ migrations.AlterField(+ model_name='contentsource',+ name='source_identifier',+ field=models.CharField(db_column='provider_identifier', max_length=80, unique=True),+ ),+ ]diff --git a/api/api/models/models.py b/api/api/models/models.pyindex 18e254936..456dea65f 100644--- a/api/api/models/models.py+++ b/api/api/models/models.py@@ -21,7 +21,7 @@ class ContentSource(models.Model):"""source_identifier = models.CharField(- max_length=50, unique=True, db_column="provider_identifier"+ max_length=80, unique=True, db_column="provider_identifier")source_name = models.CharField(max_length=250, db_column="provider_name")created_on = models.DateTimeField(auto_now=False)diff --git a/api/latest_migrations/api b/api/latest_migrations/apiindex c93d7db72..41cb750ce 100644--- a/api/latest_migrations/api+++ b/api/latest_migrations/api@@ -2,4 +2,4 @@# If you have a merge conflict in this file, it means you need to run:# manage.py makemigrations --merge# in order to resolve the conflict between migrations.-0068_remove_audioreport_status_remove_imagereport_status+0069_alter_contentsource_source_identifier