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)
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)
def save(self, *args, **kwargs): super(SummaryAttribute, self).save(*args, **kwargs) update_attribute_in_summary_table(self.slug) populate_attribute_task.delay(self.slug)