class Migration(migrations.Migration):

    dependencies = [
        ('members', '0006_team'),
    ]

    operations = [
        migrations.AddField(
            model_name='individualmember',
            name='bio',
            field=markdownx.models.MarkdownxField(blank=True),
        ),
        migrations.AddField(
            model_name='individualmember',
            name='website',
            field=models.URLField(blank=True),
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('appmngt', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('taggit', '0002_auto_20150616_2121'),
    ]

    operations = [
        migrations.CreateModel(
            name='FuncFlow',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('flow_id',
                 models.CharField(default='',
                                  max_length=64,
                                  unique=True,
                                  verbose_name='Flow ID')),
                ('type',
                 models.CharField(choices=[('Asynchronous', 'Asynchronous'),
                                           ('Synchronous', 'Synchronous'),
                                           ('Redirection', 'Redirection')],
                                  max_length=32,
                                  verbose_name='Type')),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
            options={
                'verbose_name': 'Functional flow',
            },
        ),
        migrations.CreateModel(
            name='HistoricalFuncFlow',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('flow_id',
                 models.CharField(db_index=True,
                                  default='',
                                  max_length=64,
                                  verbose_name='Flow ID')),
                ('type',
                 models.CharField(choices=[('Asynchronous', 'Asynchronous'),
                                           ('Synchronous', 'Synchronous'),
                                           ('Redirection', 'Redirection')],
                                  max_length=32,
                                  verbose_name='Type')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical Functional flow',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalSubFuncFlow',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('subflow_id',
                 models.CharField(db_index=True,
                                  default='',
                                  max_length=64,
                                  verbose_name='Sub flow ID')),
                ('vital',
                 models.BooleanField(default=False, verbose_name='Vital')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('func_flow',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='funcmngt.FuncFlow',
                     verbose_name='Functional Flow')),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
                ('receiver',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='appmngt.Application',
                     verbose_name='Receiver')),
                ('requester',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='appmngt.Application',
                     verbose_name='Requester')),
            ],
            options={
                'verbose_name': 'historical Sub functional flow',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='SubFuncFlow',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('subflow_id',
                 models.CharField(default='',
                                  max_length=64,
                                  unique=True,
                                  verbose_name='Sub flow ID')),
                ('vital',
                 models.BooleanField(default=False, verbose_name='Vital')),
                ('func_flow',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_flow',
                     to='funcmngt.FuncFlow',
                     verbose_name='Functional Flow')),
                ('receiver',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_rec_app',
                     to='appmngt.Application',
                     verbose_name='Receiver')),
                ('requester',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_req_app',
                     to='appmngt.Application',
                     verbose_name='Requester')),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
            options={
                'verbose_name': 'Sub functional flow',
            },
        ),
    ]
Ejemplo n.º 3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('taggit', '0002_auto_20150616_2121'),
    ]

    operations = [
        migrations.CreateModel(
            name='Application',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
            ],
            options={
                'verbose_name_plural': 'Applications',
            },
        ),
        migrations.CreateModel(
            name='Environment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('name', models.CharField(max_length=200,
                                          verbose_name='Name')),
                ('application',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='env_app',
                     to='appmngt.Application',
                     verbose_name='Application')),
            ],
            options={
                'verbose_name_plural': 'Environments',
            },
        ),
        migrations.CreateModel(
            name='HistoricalApplication',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical application',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalEnvironment',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('name', models.CharField(max_length=200,
                                          verbose_name='Name')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('application',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='appmngt.Application',
                     verbose_name='Application')),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical environment',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalPartner',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical partner',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalRelease',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('release_date',
                 models.DateField(default=datetime.datetime.now,
                                  verbose_name='Release date')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical release',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalUnivers',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical univers',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='Partner',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
            options={
                'verbose_name_plural': 'Partners',
            },
        ),
        migrations.CreateModel(
            name='Release',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('release_date',
                 models.DateField(default=datetime.datetime.now,
                                  verbose_name='Release date')),
                ('applications',
                 models.ManyToManyField(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     related_name='release_app',
                     to='appmngt.Application',
                     verbose_name='Applications')),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
            options={
                'verbose_name_plural': 'Releases',
            },
        ),
        migrations.CreateModel(
            name='Univers',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
            options={
                'verbose_name_plural': 'Univers',
            },
        ),
        migrations.AddField(
            model_name='historicalapplication',
            name='partner',
            field=models.ForeignKey(
                blank=True,
                db_constraint=False,
                default=None,
                limit_choices_to={'status__in': ('On going', 'Released')},
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='+',
                to='appmngt.Partner',
                verbose_name='Partner'),
        ),
        migrations.AddField(
            model_name='historicalapplication',
            name='univers',
            field=models.ForeignKey(
                blank=True,
                db_constraint=False,
                default=None,
                limit_choices_to={'status__in': ('On going', 'Released')},
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='+',
                to='appmngt.Univers',
                verbose_name='Univers'),
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('taggit', '0003_taggeditem_add_unique_index'),
    ]

    operations = [
        migrations.CreateModel(
            name='FAQ',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('order', models.PositiveIntegerField(db_index=True, editable=False, verbose_name='order')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('question', models.CharField(max_length=255)),
                ('answer', markdownx.models.MarkdownxField()),
            ],
            options={
                'ordering': ('order',),
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Link',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('url', models.URLField(max_length=2000)),
                ('title', models.CharField(blank=True, max_length=255, null=True)),
                ('label', models.CharField(blank=True, max_length=255, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Scholarship',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('license', models.CharField(blank=True, help_text='The Creative Commons licence associated to the legal resource.', max_length=50, null=True)),
                ('contributor_name', models.CharField(max_length=120)),
                ('contributor_email', models.EmailField(max_length=254)),
                ('summary', models.TextField(blank=True, null=True)),
                ('status', models.PositiveSmallIntegerField(choices=[(1, 'Unreviewed'), (2, 'Review in Progress'), (3, 'Published'), (4, 'Rejected')], default=1, help_text='The stage of the review process where the resource is.')),
                ('title', models.CharField(blank=True, max_length=255, null=True)),
                ('publication_name', models.CharField(blank=True, max_length=255, null=True)),
                ('publication_year', models.PositiveSmallIntegerField(blank=True, null=True)),
                ('authors', models.CharField(blank=True, max_length=255, null=True)),
                ('link', models.ForeignKey(help_text='The link to the article.', on_delete=django.db.models.deletion.CASCADE, to='legal_db.Link')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Case',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('license', models.CharField(blank=True, help_text='The Creative Commons licence associated to the legal resource.', max_length=50, null=True)),
                ('contributor_name', models.CharField(max_length=120)),
                ('contributor_email', models.EmailField(max_length=254)),
                ('summary', models.TextField(blank=True, null=True)),
                ('status', models.PositiveSmallIntegerField(choices=[(1, 'Unreviewed'), (2, 'Review in Progress'), (3, 'Published'), (4, 'Rejected')], default=1, help_text='The stage of the review process where the resource is.')),
                ('name', models.CharField(blank=True, help_text='If there are multiple lawsuits between the parties, please just include one here and note the others in the related cases field.', max_length=200, null=True)),
                ('related_cases', models.CharField(blank=True, help_text='If there are multiple lawsuits between the parties in this dispute, please note additional cases here.', max_length=255, null=True)),
                ('country', django_countries.fields.CountryField(blank=True, max_length=2, null=True)),
                ('courts', models.CharField(blank=True, help_text='The original court name and/or English translation. If the lawsuit was filed in one court and then went to another court on appeal, please note all relevant courts here.', max_length=255, null=True)),
                ('background', models.TextField(blank=True, help_text='Describe the factual information that led to the lawsuit being filed, and explain what claims were filed in the lawsuit.', null=True)),
                ('decision_year', models.PositiveSmallIntegerField(blank=True, help_text='Year of case resolution.', null=True)),
                ('is_pending', models.BooleanField(blank=True, help_text='Indicate if is an ongoing case or not.', null=True)),
                ('links', models.ManyToManyField(help_text='Include any links to pleadings, briefs, and opinions in the lawsuit, as well as blog posts, academic articles, or other relevant materials.', to='legal_db.Link')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('user_manager', '0001_initial'),
        ('docs_manager', '0001_initial'),
        ('git_manager', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=255)),
                ('description', models.TextField(blank=True, null=True)),
                ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name')),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='marketplace.Category')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('language', models.CharField(max_length=255)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Package',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=255, unique=True)),
                ('description', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PackageResource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('resource', markdownx.models.MarkdownxField()),
                ('url', models.URLField(null=True)),
                ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user_manager.WorkbenchUser')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PackageVersion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('version_nr', models.CharField(max_length=50)),
                ('changelog', models.TextField()),
                ('pre_release', models.BooleanField(default=False)),
                ('url', models.URLField(null=True)),
                ('added_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='user_manager.WorkbenchUser')),
            ],
        ),
        migrations.CreateModel(
            name='ExternalPackage',
            fields=[
                ('package_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='marketplace.Package')),
                ('project_page', models.URLField()),
            ],
            options={
                'abstract': False,
            },
            bases=('marketplace.package',),
        ),
        migrations.CreateModel(
            name='InternalPackage',
            fields=[
                ('package_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='marketplace.Package')),
                ('published', models.BooleanField(default=False)),
                ('docs', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='docs_manager.Docs')),
                ('git_repo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='git_manager.GitRepository')),
            ],
            options={
                'abstract': False,
            },
            bases=('marketplace.package',),
        ),
        migrations.AddField(
            model_name='packageversion',
            name='package',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Package'),
        ),
        migrations.AddField(
            model_name='packageresource',
            name='package',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Package'),
        ),
        migrations.AddField(
            model_name='package',
            name='category',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Category'),
        ),
        migrations.AddField(
            model_name='package',
            name='language',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Language'),
        ),
        migrations.AddField(
            model_name='package',
            name='owner',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner', to='user_manager.WorkbenchUser'),
        ),
        migrations.AddField(
            model_name='package',
            name='subscribed_users',
            field=models.ManyToManyField(to='user_manager.WorkbenchUser'),
        ),
        migrations.AlterUniqueTogether(
            name='packageversion',
            unique_together=set([('package', 'version_nr')]),
        ),
    ]