"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/tasks/migrations/0001_initial.py" (15 Jan 2020, 3196 Bytes) of package /linux/www/taiga-back-5.0.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "0001_initial.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from django.db import models, migrations
    5 import django.contrib.postgres.fields
    6 from django.conf import settings
    7 import django.utils.timezone
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     dependencies = [
   13         ('projects', '0002_auto_20140903_0920'),
   14         ('milestones', '__first__'),
   15         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   16         ('userstories', '0001_initial'),
   17     ]
   18 
   19     operations = [
   20         migrations.CreateModel(
   21             name='Task',
   22             fields=[
   23                 ('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)),
   24                 ('tags', django.contrib.postgres.fields.ArrayField(base_field=models.TextField(), blank=True, default=[], null=True, size=None, verbose_name='tags')),
   25                 ('version', models.IntegerField(default=1, verbose_name='version')),
   26                 ('is_blocked', models.BooleanField(verbose_name='is blocked', default=False)),
   27                 ('blocked_note', models.TextField(blank=True, verbose_name='blocked note', default='')),
   28                 ('ref', models.BigIntegerField(null=True, blank=True, verbose_name='ref', db_index=True, default=None)),
   29                 ('created_date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='created date')),
   30                 ('modified_date', models.DateTimeField(verbose_name='modified date')),
   31                 ('finished_date', models.DateTimeField(null=True, blank=True, verbose_name='finished date')),
   32                 ('subject', models.TextField(verbose_name='subject')),
   33                 ('description', models.TextField(blank=True, verbose_name='description')),
   34                 ('is_iocaine', models.BooleanField(verbose_name='is iocaine', default=False)),
   35                 ('assigned_to', models.ForeignKey(null=True, verbose_name='assigned to', default=None, blank=True, to=settings.AUTH_USER_MODEL, related_name='tasks_assigned_to_me')),
   36                 ('milestone', models.ForeignKey(null=True, verbose_name='milestone', default=None, blank=True, to='milestones.Milestone', related_name='tasks')),
   37                 ('owner', models.ForeignKey(null=True, verbose_name='owner', default=None, blank=True, to=settings.AUTH_USER_MODEL, related_name='owned_tasks')),
   38                 ('project', models.ForeignKey(verbose_name='project', to='projects.Project', related_name='tasks')),
   39                 ('status', models.ForeignKey(verbose_name='status', to='projects.TaskStatus', related_name='tasks')),
   40                 ('user_story', models.ForeignKey(null=True, verbose_name='user story', blank=True, to='userstories.UserStory', related_name='tasks')),
   41                 ('watchers', models.ManyToManyField(null=True, blank=True, to=settings.AUTH_USER_MODEL, verbose_name='watchers', related_name='tasks_task+')),
   42             ],
   43             options={
   44                 'verbose_name_plural': 'tasks',
   45                 'ordering': ['project', 'created_date'],
   46                 'verbose_name': 'task',
   47                 'permissions': (('view_task', 'Can view task'),),
   48             },
   49             bases=(models.Model,),
   50         ),
   51     ]