Skip to content
Snippets Groups Projects
Commit 3a2791c1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

appointment contain post mail sent boolean field

parent 7d11d738
No related branches found
No related tags found
1 merge request!40appointment contain post mail sent boolean field
Pipeline #
# -*- 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'),
),
]
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment