def change_view(self, request, object_id, form_url='', extra_context=None):
    extra_context = extra_context or self.extra_context()
return super(PollAdmin, self).change_view(request, object_id, form_url,
    extra_context=extra_context)
Add a custom button to a Django application's admin page