2👍
✅
The temporary object seems pointless. It would be easier to update from the form’s cleaned data directly:
Product.objects.update(**self.cleaned_data)
Source:stackexchange.com
2👍
The temporary object seems pointless. It would be easier to update from the form’s cleaned data directly:
Product.objects.update(**self.cleaned_data)