# -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import permission_required
from .forms import FeedbackForm


@permission_required('feedback.add_position')
def add(request):
    data = request.POST if request.POST else None
    feedback_form = FeedbackForm(data)
    if feedback_form.is_valid():
        feedback_form.save()
        return redirect('members:user-projects')
    return render(request, 'feedback/add_form.html', {'feedback_form': feedback_form})

@@ -135,82 +135,76 @@
 rom 
-.forms import FeedbackForm%0A%0A%0A@permission_required('feedback.add_position')
+django.core.mail import send_mail%0A%0Afrom .forms import FeedbackForm%0A%0A
 %0Adef
@@ -268,33 +268,24 @@
 se None%0A    
-feedback_
 form = Feedb
@@ -305,25 +305,16 @@
 %0A    if 
-feedback_
 form.is_
@@ -322,16 +322,36 @@
 alid():%0A
+        form.save()%0A
         
@@ -362,19 +362,233 @@
 back
-_
+ = 
 form.
-save(
+instance%0A        send_mail(u%22%D0%9E%D0%B1%D1%80%D0%B0%D1%82%D0%BD%D0%B0 %D0%B2%D1%80%D1%8A%D0%B7%D0%BA%D0%B0%22,%0A                u%22%D0%9F%D0%BE%D0%B4%D0%B0%D1%82%D0%B5%D0%BB: %7B%7D %7B%7D %D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F: %7B%7D%22.format(feedback.name, feedback.email, feedback.text),%0A                %22ss@uni-sofia.bg%22,%0A                %22ss@uni-sofia.bg%22
 )%0A  
@@ -705,24 +705,15 @@
 _form': 
-feedback_
 form%7D)%0A

Send mail with feedback