image = models.ImageField('Фото пользавателя', upload_to = "static/images/", blank = True)
if request.method == 'POST':
if request.user.is_authenticated == True:
image_redact = User.objects.get(username = request.user.username)
image_redact.image = "request.POST['file']
image_redact = image_redact.save()