You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
440 B
17 lines
440 B
# -*- coding: utf-8 -*-
|
|
from django.views.generic import CreateView
|
|
|
|
from .forms import SiteReviewForm
|
|
from functions.custom_views import AjaxableResponseMixin
|
|
from functions.http import JsonResponse
|
|
|
|
|
|
class SiteReviewCreateView(AjaxableResponseMixin, CreateView):
|
|
form_class = SiteReviewForm
|
|
|
|
def form_valid(self, form):
|
|
form.save()
|
|
data = {
|
|
'success': True,
|
|
}
|
|
return JsonResponse(data)
|
|
|