1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
5 from django.conf import settings
8 class Migration(migrations.Migration):
11 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('status', models.CharField(default='regular', max_length=10, choices=[('pending', 'Membership pending'), ('regular', 'Regular member'), ('owner', 'Organizaition owner')])),
20 ('created_at', models.DateTimeField(auto_now_add=True)),
23 'ordering': ('user', 'organization'),
26 migrations.CreateModel(
29 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
30 ('name', models.CharField(max_length=1024)),
31 ('created_at', models.DateTimeField(auto_now_add=True)),
32 ('logo', models.ImageField(upload_to='people/logo', blank=True)),
33 ('description', models.TextField(blank=True)),
37 model_name='membership',
39 field=models.ForeignKey(to='organizations.Organization'),
42 model_name='membership',
44 field=models.ForeignKey(to=settings.AUTH_USER_MODEL),