|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Generated by Django 1.11.12 on 2018-04-27 06:46 |
| 3 | +from __future__ import unicode_literals |
| 4 | + |
| 5 | +import datetime |
| 6 | +from django.conf import settings |
| 7 | +from django.db import migrations, models |
| 8 | +import django.db.models.deletion |
| 9 | + |
| 10 | + |
| 11 | +class Migration(migrations.Migration): |
| 12 | + |
| 13 | + dependencies = [ |
| 14 | + migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
| 15 | + ('person', '0003_auto_20180426_0517'), |
| 16 | + ] |
| 17 | + |
| 18 | + operations = [ |
| 19 | + migrations.CreateModel( |
| 20 | + name='HistoricalPerson', |
| 21 | + fields=[ |
| 22 | + ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
| 23 | + ('time', models.DateTimeField(default=datetime.datetime.now)), |
| 24 | + ('name', models.CharField(db_index=True, help_text=b'Preferred form of name.', max_length=255, verbose_name=b'Full Name (Unicode)')), |
| 25 | + ('ascii', models.CharField(help_text=b'Name as rendered in ASCII (Latin, unaccented) characters.', max_length=255, verbose_name=b'Full Name (ASCII)')), |
| 26 | + ('ascii_short', models.CharField(blank=True, help_text=b'Example: A. Nonymous. Fill in this with initials and surname only if taking the initials and surname of the ASCII name above produces an incorrect initials-only form. (Blank is OK).', max_length=32, null=True, verbose_name=b'Abbreviated Name (ASCII)')), |
| 27 | + ('affiliation', models.CharField(blank=True, help_text=b'Employer, university, sponsor, etc.', max_length=255)), |
| 28 | + ('biography', models.TextField(blank=True, help_text=b'Short biography for use on leadership pages. Use plain text or reStructuredText markup.')), |
| 29 | + ('photo', models.TextField(blank=True, default=None, max_length=100)), |
| 30 | + ('photo_thumb', models.TextField(blank=True, default=None, max_length=100)), |
| 31 | + ('history_id', models.AutoField(primary_key=True, serialize=False)), |
| 32 | + ('history_date', models.DateTimeField()), |
| 33 | + ('history_change_reason', models.CharField(max_length=100, null=True)), |
| 34 | + ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
| 35 | + ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
| 36 | + ('user', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
| 37 | + ], |
| 38 | + options={ |
| 39 | + 'ordering': ('-history_date', '-history_id'), |
| 40 | + 'get_latest_by': 'history_date', |
| 41 | + 'verbose_name': 'historical person', |
| 42 | + }, |
| 43 | + ), |
| 44 | + migrations.RemoveField( |
| 45 | + model_name='personhistory', |
| 46 | + name='person', |
| 47 | + ), |
| 48 | + migrations.RemoveField( |
| 49 | + model_name='personhistory', |
| 50 | + name='user', |
| 51 | + ), |
| 52 | + migrations.DeleteModel( |
| 53 | + name='PersonHistory', |
| 54 | + ), |
| 55 | + ] |
0 commit comments