def init_with_context(self, context):
    self.children.append(modules.LinkList(_('Tasks'), children=[[
        'Your task name', '/task']]))
urlpatterns += patterns('yourapp.views', ('^task$', 'task'))

def task(request):
    if request.user.is_authenticated():
        update_definitions_task.delay()
return redirect('/admin')
Add a custom button to a Django application's admin page