Esempio n. 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}))
Esempio n. 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
Esempio n. 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}))
Esempio n. 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
Esempio n. 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'))
Esempio n. 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'))