示例#1
0
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0010_auto_20160503_1235'),
    ])

    operations = [
        migrations.AddField(
            model_name='cosinnusgroup',
            name='facebook_page_id',
            field=models.CharField(
                blank=True,
                max_length=200,
                null=True,
                verbose_name='Facebook Page ID',
                validators=[django.core.validators.MaxLengthValidator(200)]),
        ),
        migrations.AlterField(
            model_name='cosinnusgroup',
            name='facebook_group_id',
            field=models.CharField(
                blank=True,
                max_length=200,
                null=True,
                verbose_name='Facebook Group ID',
                validators=[django.core.validators.MaxLengthValidator(200)]),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0004_auto_20160215_1458'),
    ])

    operations = [
        migrations.RunPython(convert_user_visibility),
    ]
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0025_blacklist_notifsettings'),
    ])

    operations = [
        migrations.RunPython(make_individual_globalnotifs),
    ]
示例#4
0
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0028_auto_20170818_1302'),
    ])

    operations = [
        migrations.RunPython(make_individual_globalnotifs),
    ]
示例#5
0
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0006_auto_20160322_1355'),
    ])

    operations = [
        migrations.CreateModel(
            name='RelatedGroups',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
            ],
        ),
        migrations.AddField(
            model_name='relatedgroups',
            name='from_group',
            field=models.ForeignKey(related_name='+',
                                    to=settings.COSINNUS_GROUP_OBJECT_MODEL,
                                    on_delete=models.CASCADE),
        ),
        migrations.AddField(
            model_name='relatedgroups',
            name='to_group',
            field=models.ForeignKey(related_name='+',
                                    to=settings.COSINNUS_GROUP_OBJECT_MODEL,
                                    on_delete=models.CASCADE),
        ),
        migrations.AddField(
            model_name='cosinnusgroup',
            name='related_groups',
            field=models.ManyToManyField(
                related_name='_related_groups_+',
                to=settings.COSINNUS_GROUP_OBJECT_MODEL,
                through='cosinnus.RelatedGroups',
                blank=True,
                null=True,
                verbose_name='Related Teams'),
        ),
        migrations.AlterUniqueTogether(
            name='relatedgroups',
            unique_together=set([('from_group', 'to_group')]),
        ),
    ]
示例#6
0
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0003_auto_20160125_1339'),
    ])

    operations = [
        migrations.CreateModel(
            name='CosinnusTopicCategory',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('name', models.CharField(max_length=250,
                                          verbose_name='Name')),
                ('name_en',
                 models.CharField(max_length=250,
                                  null=True,
                                  verbose_name='Name (EN)',
                                  blank=True)),
                ('name_ru',
                 models.CharField(max_length=250,
                                  null=True,
                                  verbose_name='Name (RU)',
                                  blank=True)),
                ('name_uk',
                 models.CharField(max_length=250,
                                  null=True,
                                  verbose_name='Name (UK)',
                                  blank=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='tagobject',
            name='text_topics',
            field=models.ManyToManyField(related_name='tagged_objects',
                                         null=True,
                                         verbose_name='Text Topics',
                                         to='cosinnus.CosinnusTopicCategory',
                                         blank=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0017_auto_20160810_1423'),
    ])

    operations = [
        migrations.AddField(
            model_name='userprofile',
            name='language',
            field=models.CharField(default='de',
                                   max_length=2,
                                   verbose_name='Language',
                                   choices=[(b'de', 'Deutsch'),
                                            (b'en', 'English'),
                                            (b'ru', 'Russian'),
                                            (b'uk', 'Ukrainian')]),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = attach_swappable_dependencies([
        ('cosinnus', '0012_auto_20160531_1635'),
    ])

    operations = [
        migrations.CreateModel(
            name='CosinnusGroupGalleryImage',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('title',
                 models.CharField(max_length=250,
                                  null=True,
                                  verbose_name='Title',
                                  blank=True)),
                ('description',
                 models.TextField(null=True,
                                  verbose_name='Description',
                                  blank=True)),
                ('image',
                 models.ImageField(upload_to=cosinnus.utils.files.
                                   get_group_gallery_image_filename,
                                   max_length=250,
                                   verbose_name='Group Image')),
                ('group',
                 models.ForeignKey(related_name='gallery_images',
                                   verbose_name='Team',
                                   to=settings.COSINNUS_GROUP_OBJECT_MODEL,
                                   on_delete=models.CASCADE)),
            ],
            options={
                'verbose_name': 'CosinnusGroup GalleryImage',
                'verbose_name_plural': 'CosinnusGroup GalleryImages',
            },
        ),
    ]