2020-11-04 12:13:34 +00:00
|
|
|
# Generated by Django 3.1.3 on 2020-11-04 12:05
|
2020-09-21 15:34:27 +00:00
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2020-11-04 12:13:34 +00:00
|
|
|
('contenttypes', '0002_remove_content_type_name'),
|
2020-09-21 15:34:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Changelog',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('ip', models.GenericIPAddressField(blank=True, null=True, verbose_name='IP Address')),
|
|
|
|
('instance_pk', models.CharField(max_length=255, verbose_name='identifier')),
|
|
|
|
('previous', models.TextField(blank=True, default='', verbose_name='previous data')),
|
|
|
|
('data', models.TextField(blank=True, default='', verbose_name='new data')),
|
|
|
|
('action', models.CharField(choices=[('create', 'create'), ('edit', 'edit'), ('delete', 'delete')], default='edit', max_length=16, verbose_name='action')),
|
|
|
|
('timestamp', models.DateTimeField(default=django.utils.timezone.now, verbose_name='timestamp')),
|
|
|
|
('model', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype', verbose_name='model')),
|
|
|
|
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'changelog',
|
|
|
|
'verbose_name_plural': 'changelogs',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|