def done(self, request, cleaned_data): weight_list, error_list = helpers.parse_weight_csv( request, cleaned_data) WeightEntry.objects.bulk_create(weight_list) return HttpResponseRedirect( reverse('weight:overview', kwargs={'username': request.user.username}))
def process_preview(self, request, form, context): context['weight_list'], context[ 'error_list'] = helpers.parse_weight_csv(request, form.cleaned_data) return context
def done(self, request, cleaned_data): weight_list, error_list = helpers.parse_weight_csv(request, cleaned_data) WeightEntry.objects.bulk_create(weight_list) return HttpResponseRedirect(reverse('weight:overview', kwargs={'username': request.user.username}))
def process_preview(self, request, form, context): context['weight_list'], context['error_list'] = helpers.parse_weight_csv(request, form.cleaned_data) return context
def done(self, request, cleaned_data): weight_list, error_list = helpers.parse_weight_csv(request, cleaned_data) WeightEntry.objects.bulk_create(weight_list) return HttpResponseRedirect(reverse('weight-overview'))
def done(self, request, cleaned_data): weight_list, error_list = helpers.parse_weight_csv( request, cleaned_data) WeightEntry.objects.bulk_create(weight_list) return HttpResponseRedirect(reverse('weight-overview'))