2017-06-01 10:45:10 +02:00
|
|
|
import django.db.models.deletion
|
2020-06-11 00:54:34 +02:00
|
|
|
from django.db import migrations, models
|
2015-08-18 21:29:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("contenttypes", "0001_initial"),
|
2015-08-18 21:29:23 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="Confirmation",
|
2015-08-18 21:29:23 +02:00
|
|
|
fields=[
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"id",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.AutoField(
|
2021-02-12 08:20:45 +01:00
|
|
|
verbose_name="ID", serialize=False, auto_created=True, primary_key=True
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("object_id", models.PositiveIntegerField()),
|
|
|
|
("date_sent", models.DateTimeField(verbose_name="sent")),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"confirmation_key",
|
|
|
|
models.CharField(max_length=40, verbose_name="activation key"),
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"content_type",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
2021-02-12 08:20:45 +01:00
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="contenttypes.ContentType"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2015-08-18 21:29:23 +02:00
|
|
|
],
|
|
|
|
options={
|
2021-02-12 08:20:45 +01:00
|
|
|
"verbose_name": "confirmation email",
|
|
|
|
"verbose_name_plural": "confirmation emails",
|
2015-08-18 21:29:23 +02:00
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|