This document describes the current stable version of django_celery_monitor (1.1). For development docs, go here.

django_celery_monitor.utils

Utilities.

django_celery_monitor.utils.action(short_description, **kwargs)[source]

Set some admin action attributes.

django_celery_monitor.utils.correct_awareness(value)[source]

Fix the given datetime timezone awareness.

django_celery_monitor.utils.display_field(short_description, admin_order_field, allow_tags=True, **kwargs)[source]

Set some display_field attributes.

django_celery_monitor.utils.fixedwidth(field, name=None, pt=6, width=16, maxlen=64, pretty=False)[source]

Render a field with a fixed width.

django_celery_monitor.utils.fromtimestamp(value)[source]

Return an aware or naive datetime from the given timestamp.

django_celery_monitor.utils.make_aware(value)[source]

Make the given datetime aware of a timezone.