"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/timeline/migrations/0001_initial.py" (15 Jan 2020, 1178 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.base.db.models.fields
    6 import django.utils.timezone
    7 
    8 
    9 class Migration(migrations.Migration):
   10 
   11     dependencies = [
   12         ('contenttypes', '0001_initial'),
   13     ]
   14 
   15     operations = [
   16         migrations.CreateModel(
   17             name='Timeline',
   18             fields=[
   19                 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)),
   20                 ('object_id', models.PositiveIntegerField()),
   21                 ('namespace', models.SlugField(default='default')),
   22                 ('event_type', models.SlugField()),
   23                 ('data', taiga.base.db.models.fields.JSONField()),
   24                 ('created', models.DateTimeField(default=django.utils.timezone.now)),
   25                 ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
   26             ],
   27             options={
   28             },
   29             bases=(models.Model,),
   30         ),
   31         migrations.AlterIndexTogether(
   32             name='timeline',
   33             index_together=set([('content_type', 'object_id', 'namespace')]),
   34         ),
   35     ]