0002_auto_20160824_2152.py 1.58 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('club', '0001_initial'),
        ('core', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='membership',
            name='user',
            field=models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, related_name='membership'),
        ),
        migrations.AddField(
            model_name='club',
            name='edit_groups',
            field=models.ManyToManyField(to='core.Group', blank=True, related_name='editable_club'),
        ),
        migrations.AddField(
            model_name='club',
            name='home',
            field=models.OneToOneField(blank=True, null=True, related_name='home_of_club', verbose_name='home', to='core.SithFile'),
        ),
        migrations.AddField(
            model_name='club',
            name='owner_group',
            field=models.ForeignKey(default=1, to='core.Group', related_name='owned_club'),
        ),
        migrations.AddField(
            model_name='club',
            name='parent',
            field=models.ForeignKey(null=True, to='club.Club', related_name='children', blank=True),
        ),
        migrations.AddField(
            model_name='club',
            name='view_groups',
            field=models.ManyToManyField(to='core.Group', blank=True, related_name='viewable_club'),
        ),
    ]