added contact form in alplora
This commit is contained in:
parent
c6120cf951
commit
b4651cc337
4 changed files with 110 additions and 6 deletions
20
utils/migrations/0005_auto_20170322_1443.py
Normal file
20
utils/migrations/0005_auto_20170322_1443.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2017-03-22 14:43
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('utils', '0004_auto_20161013_0253'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='contactmessage',
|
||||
name='phone_number',
|
||||
field=models.CharField(blank=True, max_length=200),
|
||||
),
|
||||
]
|
||||
|
|
@ -43,7 +43,7 @@ class UserBillingAddress(BaseBillingAddress):
|
|||
class ContactMessage(models.Model):
|
||||
name = models.CharField(max_length=200)
|
||||
email = models.EmailField()
|
||||
phone_number = models.CharField(max_length=200)
|
||||
phone_number = models.CharField(max_length=200, blank=True)
|
||||
message = models.TextField()
|
||||
received_date = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue