mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
All: Apply Black coding rules
This commit is contained in:
@ -6,18 +6,37 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('counter', '0008_counter_token'),
|
||||
]
|
||||
dependencies = [("counter", "0008_counter_token")]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Eticket',
|
||||
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(verbose_name='product', related_name='eticket', to='counter.Product')),
|
||||
(
|
||||
"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(
|
||||
verbose_name="product",
|
||||
related_name="eticket",
|
||||
to="counter.Product",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
]
|
||||
|
Reference in New Issue
Block a user