mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [("counter", "0008_counter_token")]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Eticket",
|
|
fields=[
|
|
(
|
|
"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(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
verbose_name="product",
|
|
related_name="eticket",
|
|
to="counter.Product",
|
|
),
|
|
),
|
|
],
|
|
)
|
|
]
|