django_celery_beat.admin

Periodic Task Admin interface.

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

Admin-interface for periodic tasks.

actions = (u'enable_tasks', u'disable_tasks', u'run_tasks')
celery_app = <Celery proj>
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'description'), u'classes': (u'extrapretty', u'wide')}), (u'Schedule', {u'fields': (u'interval', u'crontab', u'solar', u'start_time', u'one_off'), 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', u'interval', u'start_time', u'one_off')
media
model

alias of django_celery_beat.models.PeriodicTask

run_tasks(request, queryset)[source]
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 django_celery_beat.models.PeriodicTask

base_fields = {'args': <django.forms.fields.CharField object at 0x7f605b20ab10>, 'crontab': <django.forms.models.ModelChoiceField object at 0x7f605b20a710>, 'description': <django.forms.fields.CharField object at 0x7f605b216690>, 'enabled': <django.forms.fields.BooleanField object at 0x7f605b216550>, 'exchange': <django.forms.fields.CharField object at 0x7f605b20ae90>, 'expires': <django.forms.fields.DateTimeField object at 0x7f605b216290>, 'interval': <django.forms.models.ModelChoiceField object at 0x7f605b20a450>, 'kwargs': <django.forms.fields.CharField object at 0x7f605b20ab90>, 'name': <django.forms.fields.CharField object at 0x7f605b20a0d0>, 'one_off': <django.forms.fields.BooleanField object at 0x7f605b216310>, 'queue': <django.forms.fields.CharField object at 0x7f605b20ac90>, 'regtask': <django_celery_beat.admin.TaskChoiceField object at 0x7f605b279d90>, 'routing_key': <django.forms.fields.CharField object at 0x7f605b216090>, 'solar': <django.forms.models.ModelChoiceField object at 0x7f605b20a950>, 'start_time': <django.forms.fields.DateTimeField object at 0x7f605b2164d0>, 'task': <django.forms.fields.CharField object at 0x7f605b279e50>}
clean()[source]
clean_args()[source]
clean_kwargs()[source]
declared_fields = {'regtask': <django_celery_beat.admin.TaskChoiceField object at 0x7f605b279d90>, 'task': <django.forms.fields.CharField object at 0x7f605b279e50>}
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>
choices
media
tasks_as_choices()[source]