parent
7aea2c5fa1
commit
d01f5779cb
10 changed files with 209 additions and 10 deletions
@ -0,0 +1,18 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
from __future__ import unicode_literals |
||||||
|
|
||||||
|
from django.db import models, migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('main', '0009_feedback_stars'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterModelOptions( |
||||||
|
name='feedback', |
||||||
|
options={'verbose_name': 'отзыв о сайте', 'verbose_name_plural': 'отзывы о сайте'}, |
||||||
|
), |
||||||
|
] |
||||||
@ -1,9 +1,17 @@ |
|||||||
from django import forms |
from django import forms |
||||||
|
from main.models import Feedback, STARS_CHOICES |
||||||
from store.alemtat import alemtat_get_services_tuple |
from store.alemtat import alemtat_get_services_tuple |
||||||
from store.models import OrderData |
from store.models import OrderData, ProductFeedback |
||||||
|
|
||||||
|
|
||||||
class OrderForm(forms.ModelForm): |
class OrderForm(forms.ModelForm): |
||||||
class Meta: |
class Meta: |
||||||
model = OrderData |
model = OrderData |
||||||
fields = ['first_name', 'last_name', 'phone', 'email', 'city', 'address', 'deliv_type'] |
fields = ['first_name', 'last_name', 'phone', 'email', 'city', 'address', 'deliv_type'] |
||||||
|
|
||||||
|
class ProductFeedbackForm(forms.ModelForm): |
||||||
|
stars = forms.IntegerField(widget=forms.RadioSelect(choices=STARS_CHOICES), label='Оценка') |
||||||
|
|
||||||
|
class Meta: |
||||||
|
model = ProductFeedback |
||||||
|
fields = ['stars', 'name', 'email', 'text', ] |
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@ |
|||||||
|
Content-Type: text/plain; charset="utf-8" |
||||||
|
MIME-Version: 1.0 |
||||||
|
Content-Transfer-Encoding: 8bit |
||||||
|
Subject: |
||||||
|
=?utf-8?b?W0RqYW5nb10g0J7RgdGC0LDQstC40LvQuCDQvtGC0LfRi9CyINC+INGC0L7QstCw?= |
||||||
|
=?utf-8?b?0YDQtQ==?= |
||||||
|
From: admin@batiskaf-kz.kz |
||||||
|
To: spacenergy@me.com, admin@batiskaf-kz.kz |
||||||
|
Date: Wed, 01 Jul 2015 06:59:03 -0000 |
||||||
|
Message-ID: <20150701065903.5216.45243@MacBook-Pro.local> |
||||||
|
|
||||||
|
Смотреть в админке |
||||||
|
------------------------------------------------------------------------------- |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
Content-Type: text/plain; charset="utf-8" |
||||||
|
MIME-Version: 1.0 |
||||||
|
Content-Transfer-Encoding: 8bit |
||||||
|
Subject: |
||||||
|
=?utf-8?b?W0RqYW5nb10g0J7RgdGC0LDQstC40LvQuCDQvtGC0LfRi9CyINC+INGC0L7QstCw?= |
||||||
|
=?utf-8?b?0YDQtQ==?= |
||||||
|
From: admin@batiskaf-kz.kz |
||||||
|
To: spacenergy@me.com, admin@batiskaf-kz.kz |
||||||
|
Date: Wed, 01 Jul 2015 06:59:16 -0000 |
||||||
|
Message-ID: <20150701065916.5216.63259@MacBook-Pro.local> |
||||||
|
|
||||||
|
Смотреть в админке |
||||||
|
------------------------------------------------------------------------------- |
||||||
Loading…
Reference in new issue