make options consistent in celery

- changes 'broadcasts' to 'broadcast' in Celery page in admin section
- re-orders celery queues on admin page to be in English alphabetical order (other than priority levels) - this makes them consistent with the Flower interface
- fixes #3066
This commit is contained in:
Hugh Rundle 2023-10-29 11:55:06 +11:00
parent c9e6dcc2d9
commit d2b2cc0521
No known key found for this signature in database
GPG key ID: A7E35779918253F9
2 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@
</div>
<div class="column is-4">
<div class="notification">
<p class="header">{% trans "Broadcasts" %}</p>
<p class="header">{% trans "Broadcast" %}</p>
<p class="title is-5">{{ queues.broadcast|intcomma }}</p>
</div>
</div>

View file

@ -110,20 +110,20 @@ class ClearCeleryForm(forms.Form):
queues = forms.MultipleChoiceField(
label="Queues",
choices=[
(LOW, "Low prioirty"),
(LOW, "Low priority"),
(MEDIUM, "Medium priority"),
(HIGH, "High priority"),
(STREAMS, "Streams"),
(IMAGES, "Images"),
(SUGGESTED_USERS, "Suggested users"),
(EMAIL, "Email"),
(BROADCAST, "Broadcast"),
(CONNECTORS, "Connectors"),
(LISTS, "Lists"),
(INBOX, "Inbox"),
(EMAIL, "Email"),
(IMAGES, "Images"),
(IMPORTS, "Imports"),
(IMPORT_TRIGGERED, "Import triggered"),
(BROADCAST, "Broadcasts"),
(INBOX, "Inbox"),
(LISTS, "Lists"),
(MISC, "Misc"),
(STREAMS, "Streams"),
(SUGGESTED_USERS, "Suggested users"),
],
widget=forms.CheckboxSelectMultiple,
)