# `django_celery_beat.admin`

Periodic Task Admin interface.

class `django_celery_beat.admin.``PeriodicTaskAdmin`(model, admin_site)

  Admin-interface for periodic tasks.

  `actions` = ('enable_tasks', 'disable_tasks', 'run_tasks')
  `celery_app` = <Celery proj>
  `changelist_view`(request, extra_context=None)
  `disable_tasks`(request, queryset)
  `enable_tasks`(request, queryset)
  `fieldsets` = ((None, {'fields': ('name', 'regtask', 'task', 'enabled'), 'classes': ('extrapretty', 'wide')}), ('Schedule', {'fields': ('interval', 'crontab', 'solar'), 'classes': ('extrapretty', 'wide')}), ('Arguments', {'fields': ('args', 'kwargs'), 'classes': ('extrapretty', 'wide', 'collapse', 'in')}), ('Execution Options', {'fields': ('expires', 'queue', 'exchange', 'routing_key'), 'classes': ('extrapretty', 'wide', 'collapse', 'in')}))
  `form`

    alias of `PeriodicTaskForm`

  `get_queryset`(request)
  `list_display` = ('__str__', 'enabled')
  `media`
  `model`

    alias of `django_celery_beat.models.PeriodicTask`

  `run_tasks`(request, queryset)

class `django_celery_beat.admin.``PeriodicTaskForm`(data=None, files=None, auto_id='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)

  Form that lets you create and modify periodic tasks.

  class `Meta`

    Form metadata.

    `exclude` = ()
    `model`

      alias of `django_celery_beat.models.PeriodicTask`

  `base_fields` = {'args': <django.forms.fields.CharField object at 0x7f4892779cc0>, 'crontab': <django.forms.models.ModelChoiceField object at 0x7f4892779940>, 'description': <django.forms.fields.CharField object at 0x7f4892787630>, 'enabled': <django.forms.fields.BooleanField object at 0x7f4892787550>, 'exchange': <django.forms.fields.CharField object at 0x7f48927870f0>, 'expires': <django.forms.fields.DateTimeField object at 0x7f4892787438>, 'interval': <django.forms.models.ModelChoiceField object at 0x7f489276edd8>, 'kwargs': <django.forms.fields.CharField object at 0x7f4892779dd8>, 'name': <django.forms.fields.CharField object at 0x7f489276ea58>, 'queue': <django.forms.fields.CharField object at 0x7f4892779ef0>, 'regtask': <django_celery_beat.admin.TaskChoiceField object at 0x7f489276e7b8>, 'routing_key': <django.forms.fields.CharField object at 0x7f48927872b0>, 'solar': <django.forms.models.ModelChoiceField object at 0x7f4892779b38>, 'task': <django.forms.fields.CharField object at 0x7f489276e7f0>}
  `clean`()
  `clean_args`()
  `clean_kwargs`()
  `declared_fields` = {'regtask': <django_celery_beat.admin.TaskChoiceField object at 0x7f489276e7b8>, 'task': <django.forms.fields.CharField object at 0x7f489276e7f0>}
  `media`

class `django_celery_beat.admin.``TaskChoiceField`(choices=(), required=True, widget=None, label=None, initial=None, help_text='', *args, **kwargs)

  Field that lets you choose between task names.

  `valid_value`(value)
  `widget`

    alias of `TaskSelectWidget`

class `django_celery_beat.admin.``TaskSelectWidget`(attrs=None, choices=())

  Widget that lets you choose between task names.

  `celery_app` = <Celery proj>
  `choices`
  `media`
  `tasks_as_choices`()