From 3a2791c1a8a91261fb9284c698d5bed51e50d1cb Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 5 Apr 2017 09:45:57 +0200
Subject: [PATCH] appointment contain post mail sent boolean field

---
 .../0031_appointment_post_mail_sent.py        | 20 +++++++++++++++++++
 smash/web/models/appointment.py               |  4 ++++
 2 files changed, 24 insertions(+)
 create mode 100644 smash/web/migrations/0031_appointment_post_mail_sent.py

diff --git a/smash/web/migrations/0031_appointment_post_mail_sent.py b/smash/web/migrations/0031_appointment_post_mail_sent.py
new file mode 100644
index 00000000..aab4ab87
--- /dev/null
+++ b/smash/web/migrations/0031_appointment_post_mail_sent.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.3 on 2017-04-05 07:39
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0030_subject_information_sent'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='appointment',
+            name='post_mail_sent',
+            field=models.BooleanField(default=False, verbose_name=b'Post mail sent'),
+        ),
+    ]
diff --git a/smash/web/models/appointment.py b/smash/web/models/appointment.py
index 6f6e545b..176dd9d0 100644
--- a/smash/web/models/appointment.py
+++ b/smash/web/models/appointment.py
@@ -67,6 +67,10 @@ class Appointment(models.Model):
                               verbose_name='Status',
                               default=APPOINTMENT_STATUS_SCHEDULED
                               )
+    post_mail_sent = models.BooleanField(
+        verbose_name='Post mail sent',
+        default=False
+    )
 
     def mark_as_finished(self):
         self.status = Appointment.APPOINTMENT_STATUS_FINISHED
-- 
GitLab