Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

"mature" -> "sensitive" in api help strings (#3022)

rwidomaa16d4f1be76
diff --git a/api/api/migrations/0052_relational_fields.py b/api/api/migrations/0052_relational_fields.py
index 248e90cc9..f1f46fb9e 100644
--- a/api/api/migrations/0052_relational_fields.py
+++ b/api/api/migrations/0052_relational_fields.py
@@ -39,12 +39,12 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='matureaudio',
name='identifier',
- field=models.OneToOneField(db_column="identifier", db_constraint=False, help_text='The reference to the mature audio.', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, related_name='mature_audio', serialize=False, to='api.audio', to_field='identifier'),
+ field=models.OneToOneField(db_column="identifier", db_constraint=False, help_text='The reference to the sensitive audio.', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, related_name='mature_audio', serialize=False, to='api.audio', to_field='identifier'),
),
migrations.AlterField(
model_name='matureimage',
name='identifier',
- field=models.OneToOneField(db_column="identifier", db_constraint=False, help_text='The reference to the mature image.', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, related_name='mature_image', serialize=False, to='api.image', to_field='identifier'),
+ field=models.OneToOneField(db_column="identifier", db_constraint=False, help_text='The reference to the sensitive image.', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, related_name='mature_image', serialize=False, to='api.image', to_field='identifier'),
),
migrations.RenameField(
model_name="audioreport",
diff --git a/api/api/models/audio.py b/api/api/models/audio.py
index 906651aaa..377fc8d71 100644
--- a/api/api/models/audio.py
+++ b/api/api/models/audio.py
@@ -279,7 +279,7 @@ class MatureAudio(AbstractMatureMedia):
db_constraint=False,
db_column="identifier",
related_name="mature_audio",
- help_text="The reference to the mature audio.",
+ help_text="The reference to the sensitive audio.",
)
class Meta:
diff --git a/api/api/models/media.py b/api/api/models/media.py
index ede15cc9f..187e0c681 100644
--- a/api/api/models/media.py
+++ b/api/api/models/media.py
@@ -351,7 +351,7 @@ class AbstractMatureMedia(PerformIndexUpdateMixin, models.Model):
db_constraint=False,
db_column="identifier",
related_name="mature_abstract_media",
- help_text="The reference to the mature media.",
+ help_text="The reference to the sensitive media.",
)
"""
Sub-classes must override this field to point to a concrete sub-class of
diff --git a/api/api/serializers/media_serializers.py b/api/api/serializers/media_serializers.py
index a5f9e54e2..c56d394bb 100644
--- a/api/api/serializers/media_serializers.py
+++ b/api/api/serializers/media_serializers.py
@@ -122,7 +122,7 @@ class MediaSearchRequestSerializer(serializers.Serializer):
label="mature",
default=False,
required=False,
- help_text="Whether to include content for mature audiences.",
+ help_text="Whether to include sensitive content.",
)
# The ``unstable__`` prefix is used in the query params.