"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/notifications/migrations/0001_initial.py" (15 Jan 2020, 1342 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 from django.conf import settings
    6 import django.utils.timezone
    7 
    8 
    9 class Migration(migrations.Migration):
   10 
   11     dependencies = [
   12         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   13         ('projects', '0002_auto_20140903_0920'),
   14     ]
   15 
   16     operations = [
   17         migrations.CreateModel(
   18             name='NotifyPolicy',
   19             fields=[
   20                 ('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
   21                 ('notify_level', models.SmallIntegerField(choices=[(1, 'Not watching'), (2, 'Watching'), (3, 'Ignoring')])),
   22                 ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
   23                 ('modified_at', models.DateTimeField()),
   24                 ('project', models.ForeignKey(to='projects.Project', related_name='notify_policies')),
   25                 ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, related_name='notify_policies')),
   26             ],
   27             options={
   28                 'ordering': ['created_at'],
   29             },
   30             bases=(models.Model,),
   31         ),
   32         migrations.AlterUniqueTogether(
   33             name='notifypolicy',
   34             unique_together=set([('project', 'user')]),
   35         ),
   36     ]