"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/settings/migrations/0001_initial.py" (15 Jan 2020, 1897 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 # Generated by Django 1.11.2 on 2018-09-24 11:49
    3 from __future__ import unicode_literals
    4 
    5 from django.conf import settings
    6 from django.db import migrations, models
    7 import django.db.models.deletion
    8 import django.utils.timezone
    9 import taiga.projects.settings.choices
   10 
   11 
   12 class Migration(migrations.Migration):
   13 
   14     initial = True
   15 
   16     dependencies = [
   17         ('projects', '0061_auto_20180918_1355'),
   18         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   19     ]
   20 
   21     operations = [
   22         migrations.CreateModel(
   23             name='UserProjectSettings',
   24             fields=[
   25                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   26                 ('homepage', models.SmallIntegerField(choices=[(taiga.projects.settings.choices.Section(1), 'Timeline'), (taiga.projects.settings.choices.Section(2), 'Epics'), (taiga.projects.settings.choices.Section(3), 'Backlog'), (taiga.projects.settings.choices.Section(4), 'Kanban'), (taiga.projects.settings.choices.Section(5), 'Issues'), (taiga.projects.settings.choices.Section(6), 'TeamWiki')], default=taiga.projects.settings.choices.Section(1))),
   27                 ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
   28                 ('modified_at', models.DateTimeField()),
   29                 ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_project_settings', to='projects.Project')),
   30                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_project_settings', to=settings.AUTH_USER_MODEL)),
   31             ],
   32             options={
   33                 'ordering': ['created_at'],
   34             },
   35         ),
   36         migrations.AlterUniqueTogether(
   37             name='userprojectsettings',
   38             unique_together=set([('project', 'user')]),
   39         ),
   40     ]