"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/custom_attributes/migrations/0001_initial.py" (15 Jan 2020, 4100 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.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from django.db import models, migrations
    5 import django.utils.timezone
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11         ('projects', '0015_auto_20141230_1212'),
   12     ]
   13 
   14     operations = [
   15         migrations.CreateModel(
   16             name='IssueCustomAttribute',
   17             fields=[
   18                 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)),
   19                 ('name', models.CharField(verbose_name='name', max_length=64)),
   20                 ('description', models.TextField(blank=True, verbose_name='description')),
   21                 ('order', models.IntegerField(verbose_name='order', default=10000)),
   22                 ('created_date', models.DateTimeField(verbose_name='created date', default=django.utils.timezone.now)),
   23                 ('modified_date', models.DateTimeField(verbose_name='modified date')),
   24                 ('project', models.ForeignKey(to='projects.Project', verbose_name='project', related_name='issuecustomattributes')),
   25             ],
   26             options={
   27                 'ordering': ['project', 'order', 'name'],
   28                 'verbose_name': 'issue custom attribute',
   29                 'verbose_name_plural': 'issue custom attributes',
   30                 'abstract': False,
   31             },
   32             bases=(models.Model,),
   33         ),
   34         migrations.CreateModel(
   35             name='TaskCustomAttribute',
   36             fields=[
   37                 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)),
   38                 ('name', models.CharField(verbose_name='name', max_length=64)),
   39                 ('description', models.TextField(blank=True, verbose_name='description')),
   40                 ('order', models.IntegerField(verbose_name='order', default=10000)),
   41                 ('created_date', models.DateTimeField(verbose_name='created date', default=django.utils.timezone.now)),
   42                 ('modified_date', models.DateTimeField(verbose_name='modified date')),
   43                 ('project', models.ForeignKey(to='projects.Project', verbose_name='project', related_name='taskcustomattributes')),
   44             ],
   45             options={
   46                 'ordering': ['project', 'order', 'name'],
   47                 'verbose_name': 'task custom attribute',
   48                 'verbose_name_plural': 'task custom attributes',
   49                 'abstract': False,
   50             },
   51             bases=(models.Model,),
   52         ),
   53         migrations.CreateModel(
   54             name='UserStoryCustomAttribute',
   55             fields=[
   56                 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)),
   57                 ('name', models.CharField(verbose_name='name', max_length=64)),
   58                 ('description', models.TextField(blank=True, verbose_name='description')),
   59                 ('order', models.IntegerField(verbose_name='order', default=10000)),
   60                 ('created_date', models.DateTimeField(verbose_name='created date', default=django.utils.timezone.now)),
   61                 ('modified_date', models.DateTimeField(verbose_name='modified date')),
   62                 ('project', models.ForeignKey(to='projects.Project', verbose_name='project', related_name='userstorycustomattributes')),
   63             ],
   64             options={
   65                 'ordering': ['project', 'order', 'name'],
   66                 'verbose_name': 'user story custom attribute',
   67                 'verbose_name_plural': 'user story custom attributes',
   68                 'abstract': False,
   69             },
   70             bases=(models.Model,),
   71         ),
   72         migrations.AlterUniqueTogether(
   73             name='userstorycustomattribute',
   74             unique_together=set([('project', 'name')]),
   75         ),
   76         migrations.AlterUniqueTogether(
   77             name='taskcustomattribute',
   78             unique_together=set([('project', 'name')]),
   79         ),
   80         migrations.AlterUniqueTogether(
   81             name='issuecustomattribute',
   82             unique_together=set([('project', 'name')]),
   83         ),
   84     ]