'decimal' codec can't encode character u'\u0427' in position 0: invalid decimal Unicode string
\u0427 - русская Ч
все файлы в utf-8, избавился от полей DecimalField, везде u''… не помогло
'decimal' codec can't encode character u'\u0427' in position 0: invalid decimal Unicode string
model_formset = modelformset_factory(Estates, form=EstatesForm) if request.POST: formset = model_formset(request.POST, request.FILES, queryset=Estates.objects.filter(userprofile__user__username__exact=username)) if formset.is_valid(): estates_objects = formset.save(commit=False) for obj in estates_objects: obj.save() return HttpResponseRedirect('') else: formset = model_formset(queryset=Estates.objects.filter(userprofile__user__username__exact=username)) return render(request, template_name, dict(formset=formset))