Skip to content

Commit 1d8b29c

Browse files
committed
improve wordings
1 parent 8ed1931 commit 1d8b29c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pictures/tasks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def dramatiq_process_picture( # noqa: F811
7070
) -> None:
7171
if django.VERSION >= (6, 0):
7272
warnings.warn(
73-
"The 'dramatiq_process_picture'-processor is deprecated in favor of Django's tasks framework."
74-
" Deletion is scheduled with Django 5.2 version support.",
73+
"The picture process 'dramatiq_process_picture' is deprecated in favor of Django's tasks framework."
74+
" Deletion is scheduled with the expiration Django 5.2 version support.",
7575
PendingDeprecationWarning,
7676
stacklevel=2,
7777
)
@@ -113,8 +113,8 @@ def celery_process_picture( # noqa: F811
113113
) -> None:
114114
if django.VERSION >= (6, 0):
115115
warnings.warn(
116-
"The 'celery_process_picture'-processor is deprecated in favor of Django's tasks framework."
117-
" Deletion is scheduled with Django 5.2 version support.",
116+
"The picture process 'celery_process_picture' is deprecated in favor of Django's tasks framework."
117+
" Deletion is scheduled with the expiration Django 5.2 version support.",
118118
PendingDeprecationWarning,
119119
stacklevel=2,
120120
)
@@ -156,8 +156,8 @@ def rq_process_picture( # noqa: F811
156156
) -> None:
157157
if django.VERSION >= (6, 0):
158158
warnings.warn(
159-
"The 'rq_process_picture'-processor is deprecated in favor of Django's tasks framework."
160-
" Deletion is scheduled with Django 5.2 version support.",
159+
"The picture process 'rq_process_picture' is deprecated in favor of Django's tasks framework."
160+
" Deletion is scheduled with the expiration Django 5.2 version support.",
161161
PendingDeprecationWarning,
162162
stacklevel=2,
163163
)
@@ -210,5 +210,5 @@ def process_picture( # noqa: F811
210210
except exceptions.InvalidTask as e:
211211
raise exceptions.ImproperlyConfigured(
212212
"Pictures are processed on a separate queue by default,"
213-
" please configure the `TASKS` settings in accordance with Django-Pictures documentation."
213+
" please update the 'TASKS' setting in accordance with Django-Pictures documentation."
214214
) from e

tests/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ def test_django_tasks_misconfiguration(settings):
4242
importlib.reload(tasks)
4343
assert str(e.value) == (
4444
"Pictures are processed on a separate queue by default,"
45-
" please `TASKS` settings in accordance with Django-Pictures documentation."
45+
" please update the 'TASKS' setting in accordance with Django-Pictures documentation."
4646
)

0 commit comments

Comments
 (0)