84 lines
2.6 KiB
Python
84 lines
2.6 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.10 on 2016-09-28 15:01
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = []
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Compta",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("date", models.DateField()),
|
||
|
(
|
||
|
"counterpart",
|
||
|
models.CharField(blank=True, max_length=255, null=True),
|
||
|
),
|
||
|
(
|
||
|
"account_number",
|
||
|
models.CharField(blank=True, default="", max_length=19),
|
||
|
),
|
||
|
(
|
||
|
"amount",
|
||
|
models.DecimalField(
|
||
|
blank=True,
|
||
|
decimal_places=2,
|
||
|
max_digits=7,
|
||
|
verbose_name="Montant",
|
||
|
),
|
||
|
),
|
||
|
("done", models.BooleanField(default=True)),
|
||
|
("information", models.TextField()),
|
||
|
],
|
||
|
options={
|
||
|
"verbose_name": "Comptabilité",
|
||
|
"verbose_name_plural": "Comptabilités",
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name="Event",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("name", models.CharField(max_length=255, verbose_name="Nom")),
|
||
|
("year", models.IntegerField(verbose_name="Année")),
|
||
|
("datebegin", models.DateField()),
|
||
|
("dateend", models.DateField()),
|
||
|
("place", models.CharField(max_length=255, verbose_name="Lieu")),
|
||
|
],
|
||
|
options={"verbose_name": "Evènement", "verbose_name_plural": "Evènements",},
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name="compta",
|
||
|
name="event",
|
||
|
field=models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
related_name="compta",
|
||
|
to="eventCompta.Event",
|
||
|
),
|
||
|
),
|
||
|
]
|