예제 #1
0
 def edit(self, object_id):
     return get_context_for_object(
         get_object_or_404(Poll, pk=object_id),
         self.request.POST or None,
     )
예제 #2
0
 def edit(self, object_id):
     return get_context_for_object(
         get_object_or_404(Poll, pk=object_id),
         self.request.POST or None,
     )
예제 #3
0
 def add(self):
     return get_context_for_object(
         Poll(),
         self.request.POST or None,
     )
예제 #4
0
 def add(self):
     return get_context_for_object(
         Poll(),
         self.request.POST or None,
     )