Commit c798bc72 authored by okhin's avatar okhin

Adding the birthdate to the Contact, to avoid homonyms

parent 98a9f0cf
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-08-07 16:30
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('contact', '0002_auto_20160807_1603'),
]
operations = [
migrations.AddField(
model_name='contact',
name='birthdate',
field=models.DateField(default=datetime.datetime(2016, 8, 7, 16, 30, 44, 392583, tzinfo=utc)),
preserve_default=False,
),
]
......@@ -7,6 +7,7 @@ class Contact(models.Model):
id = models.AutoField(primary_key=True)
first_name = models.CharField(max_length=64)
last_name = models.CharField(max_length=64)
birthdate = models.DateField()
phone = models.CharField(max_length=32)
twitter = models.CharField(max_length=64, blank=True)
mail = models.CharField(max_length=255, 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