Commit 93b76fff854d58144558af3d81059f645f260958
1 parent
40d29a80
Exists in
master
and in
3 other branches
Adding limit date field
Showing
2 changed files
with
21 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,20 @@ |
1 | +# -*- coding: utf-8 -*- | |
2 | +# Generated by Django 1.10 on 2017-01-20 19:10 | |
3 | +from __future__ import unicode_literals | |
4 | + | |
5 | +from django.db import migrations, models | |
6 | + | |
7 | + | |
8 | +class Migration(migrations.Migration): | |
9 | + | |
10 | + dependencies = [ | |
11 | + ('pendencies', '0002_pendencies_resource'), | |
12 | + ] | |
13 | + | |
14 | + operations = [ | |
15 | + migrations.AddField( | |
16 | + model_name='pendencies', | |
17 | + name='limit_date', | |
18 | + field=models.DateTimeField(blank=True, null=True, verbose_name='Limit Date'), | |
19 | + ), | |
20 | + ] | ... | ... |
pendencies/models.py
... | ... | @@ -8,4 +8,5 @@ class Pendencies(models.Model): |
8 | 8 | action = models.CharField(_('Action'), max_length = 100, choices = (("view", _("Visualize")), ("create", _("Create")), ("answer", _("Answer")), ("access", _("Access")))) |
9 | 9 | begin_date = models.DateTimeField(_('Begin Date'), null = True, blank = True) |
10 | 10 | end_date = models.DateTimeField(_('End Date'), null = True, blank = True) |
11 | + limit_date = models.DateTimeField(_('Limit Date'), null = True, blank = True) | |
11 | 12 | resource = models.ForeignKey(Resource, verbose_name = _('Resource'), related_name = 'pendencies_resource', null = True) |
12 | 13 | \ No newline at end of file | ... | ... |