2016-10-03 17:30:05 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2019-10-05 22:38:25 +00:00
|
|
|
import django.db.models.deletion
|
2024-06-24 11:07:36 +00:00
|
|
|
from django.db import migrations, models
|
2016-10-03 17:30:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2018-10-04 19:29:19 +00:00
|
|
|
dependencies = [("counter", "0008_counter_token")]
|
2016-10-03 17:30:05 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2018-10-04 19:29:19 +00:00
|
|
|
name="Eticket",
|
2016-10-03 17:30:05 +00:00
|
|
|
fields=[
|
2018-10-04 19:29:19 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"banner",
|
|
|
|
models.ImageField(null=True, upload_to="etickets", blank=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"secret",
|
|
|
|
models.CharField(unique=True, verbose_name="secret", max_length=64),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"product",
|
|
|
|
models.OneToOneField(
|
2019-10-05 22:38:25 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
verbose_name="product",
|
|
|
|
related_name="eticket",
|
|
|
|
to="counter.Product",
|
|
|
|
),
|
|
|
|
),
|
2016-10-03 17:30:05 +00:00
|
|
|
],
|
2018-10-04 19:29:19 +00:00
|
|
|
)
|
2016-10-03 17:30:05 +00:00
|
|
|
]
|