def edit(self, object_id): return get_context_for_object( get_object_or_404(Poll, pk=object_id), self.request.POST or None, )
def add(self): return get_context_for_object( Poll(), self.request.POST or None, )