|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +from __future__ import unicode_literals |
| 3 | + |
| 4 | +from django.db import models, migrations |
| 5 | +import django.core.validators |
| 6 | + |
| 7 | + |
| 8 | +class Migration(migrations.Migration): |
| 9 | + |
| 10 | + dependencies = [ |
| 11 | + ('person', '0014_auto_20160613_0751'), |
| 12 | + ('mailinglists', '0001_initial'), |
| 13 | + ] |
| 14 | + |
| 15 | + operations = [ |
| 16 | + migrations.CreateModel( |
| 17 | + name='List', |
| 18 | + fields=[ |
| 19 | + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
| 20 | + ('name', models.CharField(max_length=32)), |
| 21 | + ('description', models.CharField(max_length=256)), |
| 22 | + ('advertised', models.BooleanField(default=True)), |
| 23 | + ], |
| 24 | + options={ |
| 25 | + }, |
| 26 | + bases=(models.Model,), |
| 27 | + ), |
| 28 | + migrations.CreateModel( |
| 29 | + name='Subscribed', |
| 30 | + fields=[ |
| 31 | + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
| 32 | + ('time', models.DateTimeField(auto_now_add=True)), |
| 33 | + ('address', models.CharField(max_length=64, validators=[django.core.validators.EmailValidator()])), |
| 34 | + ('lists', models.ManyToManyField(to='mailinglists.List')), |
| 35 | + ], |
| 36 | + options={ |
| 37 | + }, |
| 38 | + bases=(models.Model,), |
| 39 | + ), |
| 40 | + migrations.CreateModel( |
| 41 | + name='Whitelisted', |
| 42 | + fields=[ |
| 43 | + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
| 44 | + ('time', models.DateTimeField(auto_now_add=True)), |
| 45 | + ('address', models.CharField(max_length=64, validators=[django.core.validators.EmailValidator()])), |
| 46 | + ('by', models.ForeignKey(to='person.Person')), |
| 47 | + ], |
| 48 | + options={ |
| 49 | + }, |
| 50 | + bases=(models.Model,), |
| 51 | + ), |
| 52 | + ] |
0 commit comments