Django Email field
This commit is contained in:
parent
c8c20b3fad
commit
60bdeb2f63
2 changed files with 21 additions and 1 deletions
20
publichealth/home/migrations/0014_auto_20170421_1426.py
Normal file
20
publichealth/home/migrations/0014_auto_20170421_1426.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-04-21 12:26
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('home', '0013_articleindexpage_feed_image'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='contact',
|
||||
name='email',
|
||||
field=models.EmailField(default='', max_length=100),
|
||||
),
|
||||
]
|
|
@ -21,7 +21,7 @@ class Contact(models.Model):
|
|||
)
|
||||
address = models.TextField(default="", blank=True)
|
||||
phone = models.CharField(max_length=40, default="")
|
||||
email = models.CharField(max_length=40, default="")
|
||||
email = models.EmailField(max_length=100, default="")
|
||||
www = models.URLField(null=True, blank=True)
|
||||
|
||||
panels = Page.content_panels + [
|
||||
|
|
Loading…
Reference in a new issue