"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/custom_attributes/migrations/0002_issuecustomattributesvalues_taskcustomattributesvalues_userstorycustomattributesvalues.py" (15 Jan 2020, 3053 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 "0002_issuecustomattributesvalues_taskcustomattributesvalues_userstorycustomattributesvalues.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 taiga.base.db.models.fields
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11         ('tasks', '0005_auto_20150114_0954'),
   12         ('issues', '0004_auto_20150114_0954'),
   13         ('userstories', '0009_remove_userstory_is_archived'),
   14         ('custom_attributes', '0001_initial'),
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='IssueCustomAttributesValues',
   20             fields=[
   21                 ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
   22                 ('version', models.IntegerField(default=1, verbose_name='version')),
   23                 ('attributes_values', taiga.base.db.models.fields.JSONField(default={}, verbose_name='attributes_values')),
   24                 ('issue', models.OneToOneField(verbose_name='issue', to='issues.Issue', related_name='custom_attributes_values')),
   25             ],
   26             options={
   27                 'verbose_name_plural': 'issue custom attributes values',
   28                 'ordering': ['id'],
   29                 'verbose_name': 'issue ustom attributes values',
   30                 'abstract': False,
   31             },
   32             bases=(models.Model,),
   33         ),
   34         migrations.CreateModel(
   35             name='TaskCustomAttributesValues',
   36             fields=[
   37                 ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
   38                 ('version', models.IntegerField(default=1, verbose_name='version')),
   39                 ('attributes_values', taiga.base.db.models.fields.JSONField(default={}, verbose_name='attributes_values')),
   40                 ('task', models.OneToOneField(verbose_name='task', to='tasks.Task', related_name='custom_attributes_values')),
   41             ],
   42             options={
   43                 'verbose_name_plural': 'task custom attributes values',
   44                 'ordering': ['id'],
   45                 'verbose_name': 'task ustom attributes values',
   46                 'abstract': False,
   47             },
   48             bases=(models.Model,),
   49         ),
   50         migrations.CreateModel(
   51             name='UserStoryCustomAttributesValues',
   52             fields=[
   53                 ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
   54                 ('version', models.IntegerField(default=1, verbose_name='version')),
   55                 ('attributes_values', taiga.base.db.models.fields.JSONField(default={}, verbose_name='attributes_values')),
   56                 ('user_story', models.OneToOneField(verbose_name='user story', to='userstories.UserStory', related_name='custom_attributes_values')),
   57             ],
   58             options={
   59                 'verbose_name_plural': 'user story custom attributes values',
   60                 'ordering': ['id'],
   61                 'verbose_name': 'user story ustom attributes values',
   62                 'abstract': False,
   63             },
   64             bases=(models.Model,),
   65         ),
   66     ]