mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Make the etickets
This commit is contained in:
23
counter/migrations/0009_eticket.py
Normal file
23
counter/migrations/0009_eticket.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
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(verbose_name='product', related_name='eticket', to='counter.Product')),
|
||||
],
|
||||
),
|
||||
]
|
24
counter/migrations/0010_auto_20161003_1900.py
Normal file
24
counter/migrations/0010_auto_20161003_1900.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('counter', '0009_eticket'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='eticket',
|
||||
name='event_date',
|
||||
field=models.DateField(blank=True, verbose_name='event date', null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='eticket',
|
||||
name='event_title',
|
||||
field=models.CharField(blank=True, max_length=64, verbose_name='event title', null=True),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user