Commit 80367ef2 authored by okhin's avatar okhin

The field phone is not mandatory

parent c798bc72
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-08-07 16:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0003_contact_birthdate'),
]
operations = [
migrations.AlterField(
model_name='contact',
name='phone',
field=models.CharField(blank=True, max_length=32),
),
]
......@@ -8,7 +8,7 @@ class Contact(models.Model):
first_name = models.CharField(max_length=64)
last_name = models.CharField(max_length=64)
birthdate = models.DateField()
phone = models.CharField(max_length=32)
phone = models.CharField(max_length=32, blank=True)
twitter = models.CharField(max_length=64, blank=True)
mail = models.CharField(max_length=255, blank=True)
photo = models.ImageField(upload_to='contacts/photos', blank=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment