Skip to content
Snippets Groups Projects
Commit 39da4506 authored by Carlos Vega's avatar Carlos Vega
Browse files

added field comment to worker

parent 0d5f52a7
No related branches found
Tags v0.12.1
3 merge requests!207Merge Devel 0.12.x into Master (0.13.x),!203Pdp/import data,!200Improvement/pdp import data and button to export subjects table to excel
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-12-04 10:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0131_study_default_voucher_expiration_in_months'),
]
operations = [
migrations.AddField(
model_name='worker',
name='comment',
field=models.TextField(blank=True, max_length=1024, null=True, verbose_name=b'Comment'),
),
]
......@@ -146,6 +146,12 @@ class Worker(models.Model):
blank=True
)
comment = models.TextField(max_length=1024,
verbose_name='Comment',
null=True,
blank=True
)
def is_on_leave(self):
if len(self.holiday_set.filter(datetime_end__gt=datetime.datetime.now(),
datetime_start__lt=datetime.datetime.now(),
......
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