Ejemplo 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}))
Ejemplo 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
Ejemplo 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}))
Ejemplo 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
Ejemplo 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'))
Ejemplo 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'))