django_celery_beat.admin

Periodic Task Admin interface.

class django_celery_beat.admin.PeriodicTaskAdmin(model, admin_site)[source]

Admin-interface for peridic tasks.

actions = (u'enable_tasks', u'disable_tasks')
changelist_view(request, extra_context=None)[source]
disable_tasks(request, queryset)[source]
enable_tasks(request, queryset)[source]
fieldsets = ((None, {u'fields': (u'name', u'regtask', u'task', u'enabled'), u'classes': (u'extrapretty', u'wide')}), (u'Schedule', {u'fields': (u'interval', u'crontab', u'solar'), u'classes': (u'extrapretty', u'wide')}), (u'Arguments', {u'fields': (u'args', u'kwargs'), u'classes': (u'extrapretty', u'wide', u'collapse', u'in')}), (u'Execution Options', {u'fields': (u'expires', u'queue', u'exchange', u'routing_key'), u'classes': (u'extrapretty', u'wide', u'collapse', u'in')}))
form

alias of PeriodicTaskForm

get_queryset(request)[source]
list_display = (u'__str__', u'enabled')
media
model

alias of PeriodicTask

class django_celery_beat.admin.PeriodicTaskForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None)[source]

Form that lets you create and modify periodic tasks.

class Meta[source]

Form metadata.

exclude = ()
model

alias of PeriodicTask

PeriodicTaskForm.base_fields = OrderedDict([('name', <django.forms.fields.CharField object>), ('task', <django.forms.fields.CharField object>), ('interval', <django.forms.models.ModelChoiceField object>), ('crontab', <django.forms.models.ModelChoiceField object>), ('solar', <django.forms.models.ModelChoiceField object>), ('args', <django.forms.fields.CharField object>), ('kwargs', <django.forms.fields.CharField object>), ('queue', <django.forms.fields.CharField object>), ('exchange', <django.forms.fields.CharField object>), ('routing_key', <django.forms.fields.CharField object>), ('expires', <django.forms.fields.DateTimeField object>), ('enabled', <django.forms.fields.BooleanField object>), ('description', <django.forms.fields.CharField object>), ('regtask', <django_celery_beat.admin.TaskChoiceField object>)])
PeriodicTaskForm.clean()[source]
PeriodicTaskForm.clean_args()[source]
PeriodicTaskForm.clean_kwargs()[source]
PeriodicTaskForm.declared_fields = OrderedDict([('regtask', <django_celery_beat.admin.TaskChoiceField object>), ('task', <django.forms.fields.CharField object>)])
PeriodicTaskForm.media
class django_celery_beat.admin.TaskChoiceField(choices=(), required=True, widget=None, label=None, initial=None, help_text=u'', *args, **kwargs)[source]

Field that lets you choose between task names.

valid_value(value)[source]
widget

alias of TaskSelectWidget

class django_celery_beat.admin.TaskSelectWidget(attrs=None, choices=())[source]

Widget that lets you choose between task names.

celery_app = <Celery proj:0x7fde85f36410>
choices
media
tasks_as_choices()[source]