示例#1
0
 def post(self, request, *args, **kwargs):
     return_path = request.POST.get("return_path")
     if request.POST.has_key("shot"):
         shot = [int(request.POST.get("shot")),]
         populate_summary_table_task.delay(shot)
     elif request.POST.has_key("attribute"):
         attribute = request.POST.get("attribute")
         populate_attribute_task.delay(attribute)
     return HttpResponseRedirect(return_path)
示例#2
0
 def post(self, request, *args, **kwargs):
     return_path = request.POST.get("return_path")
     if request.POST.has_key("shot"):
         shot = [
             int(request.POST.get("shot")),
         ]
         populate_summary_table_task.delay(shot)
     elif request.POST.has_key("attribute"):
         attribute = request.POST.get("attribute")
         populate_attribute_task.delay(attribute)
     return HttpResponseRedirect(return_path)
示例#3
0
 def save(self, *args, **kwargs):
     super(SummaryAttribute, self).save(*args, **kwargs)
     update_attribute_in_summary_table(self.slug)
     populate_attribute_task.delay(self.slug)
示例#4
0
 def save(self, *args, **kwargs):
     super(SummaryAttribute, self).save(*args, **kwargs)
     update_attribute_in_summary_table(self.slug)
     populate_attribute_task.delay(self.slug)