Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Better names for collections of statuses

Marcin Gębalabe90e38c3f11
diff --git a/saleor/core/templatetags/status.py b/saleor/core/templatetags/status.py
index 4e4f5dc559..338e266d00 100644
--- a/saleor/core/templatetags/status.py
+++ b/saleor/core/templatetags/status.py
@@ -3,15 +3,15 @@ from django.template import Library
register = Library()
-ERROR = ['error', 'reject', 'rejected']
-SUCCESS = ['accept', 'confirmed', 'fully-paid', 'shipped', 'refunded']
+ERRORS = ['error', 'reject', 'rejected']
+SUCCESSES = ['accept', 'confirmed', 'fully-paid', 'shipped', 'refunded']
@register.inclusion_tag('status_label.html')
def render_status(status, status_display=None):
- if status in ERROR:
+ if status in ERRORS:
label_cls = 'danger'
- elif status in SUCCESS:
+ elif status in SUCCESSES:
label_cls = 'success'
else:
label_cls = 'default'