"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/history/migrations/0001_initial.py" (15 Jan 2020, 1568 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 taiga.projects.history.models
    6 import django.utils.timezone
    7 import taiga.base.db.models.fields
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     dependencies = [
   13     ]
   14 
   15     operations = [
   16         migrations.CreateModel(
   17             name='HistoryEntry',
   18             fields=[
   19                 ('id', models.CharField(primary_key=True, unique=True, max_length=255, serialize=False, default=taiga.projects.history.models._generate_uuid, editable=False)),
   20                 ('user', taiga.base.db.models.fields.JSONField(default=None, blank=True, null=True)),
   21                 ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
   22                 ('type', models.SmallIntegerField(choices=[(1, 'Change'), (2, 'Create'), (3, 'Delete')])),
   23                 ('is_snapshot', models.BooleanField(default=False)),
   24                 ('key', models.CharField(max_length=255, default=None, blank=True, null=True)),
   25                 ('diff', taiga.base.db.models.fields.JSONField(default=None, null=True)),
   26                 ('snapshot', taiga.base.db.models.fields.JSONField(default=None, null=True)),
   27                 ('values', taiga.base.db.models.fields.JSONField(default=None, null=True)),
   28                 ('comment', models.TextField(blank=True)),
   29                 ('comment_html', models.TextField(blank=True)),
   30             ],
   31             options={
   32                 'ordering': ['created_at'],
   33             },
   34             bases=(models.Model,),
   35         ),
   36     ]