"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/notifications/migrations/0002_historychangenotification.py" (15 Jan 2020, 1733 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_historychangenotification.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 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   12         ('projects', '0005_membership_invitation_extra_text'),
   13         ('history', '0004_historyentry_is_hidden'),
   14         ('notifications', '0001_initial'),
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='HistoryChangeNotification',
   20             fields=[
   21                 ('id', models.AutoField(serialize=False, primary_key=True, verbose_name='ID', auto_created=True)),
   22                 ('key', models.CharField(max_length=255, editable=False)),
   23                 ('created_datetime', models.DateTimeField(verbose_name='created date time', auto_now_add=True)),
   24                 ('updated_datetime', models.DateTimeField(verbose_name='updated date time', auto_now_add=True)),
   25                 ('history_type', models.SmallIntegerField(choices=[(1, 'Change'), (2, 'Create'), (3, 'Delete')])),
   26                 ('history_entries', models.ManyToManyField(blank=True, null=True, to='history.HistoryEntry', verbose_name='history entries', related_name='+')),
   27                 ('notify_users', models.ManyToManyField(blank=True, null=True, to=settings.AUTH_USER_MODEL, verbose_name='notify users', related_name='+')),
   28                 ('owner', models.ForeignKey(related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='owner')),
   29                 ('project', models.ForeignKey(related_name='+', to='projects.Project', verbose_name='project')),
   30             ],
   31             options={
   32             },
   33             bases=(models.Model,),
   34         ),
   35     ]