Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "mature" with "sensitive" in api help strings #3022

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/api/migrations/0052_relational_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion api/api/models/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion api/api/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,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
Expand Down
2 changes: 1 addition & 1 deletion api/api/serializers/media_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down