Beispiel #1
0
 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}))
Beispiel #2
0
 def process_preview(self, request, form, context):
     context['weight_list'], context[
         'error_list'] = helpers.parse_weight_csv(request,
                                                  form.cleaned_data)
     return context
Beispiel #3
0
 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}))
Beispiel #4
0
 def process_preview(self, request, form, context):
     context['weight_list'], context['error_list'] = helpers.parse_weight_csv(request,
                                                                              form.cleaned_data)
     return context
Beispiel #5
0
 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'))
Beispiel #6
0
 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'))