bornhack-website/src/shop/migrations/0012_ticket.py
Thomas Steen Rasmussen 00af109e2f
add flake8 and isort to pre-commit config, make flake8 and isort happy (#441)
* add flake8 to pre-commit config, and fixup many things to make flake8 happy

* add isort and sort all imports, add to pre-commit and requirements
2020-02-12 13:10:41 +01:00

46 lines
1.3 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-23 15:08
import uuid
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("shop", "0011_auto_20160517_1902")]
operations = [
migrations.CreateModel(
name="Ticket",
fields=[
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
(
"uuid",
models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True,
serialize=False,
),
),
(
"order",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="shop.Order"
),
),
(
"product",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="shop.Product"
),
),
],
options={"abstract": False},
)
]