Skip to content
Snippets Groups Projects
Commit 3365b168 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

Référencement de applipizza dans les apps.

parent 09436ff4
Branches
No related tags found
No related merge requests found
# Generated by Django 4.2 on 2023-04-12 08:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ingredient',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('nom', models.CharField(max_length=50, verbose_name="Nom de l'ingrédient")),
],
),
migrations.CreateModel(
name='Pizza',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('nom', models.CharField(max_length=50, verbose_name='Nom de la pizza')),
('prix', models.FloatField(verbose_name='Prix de la pizza')),
],
),
migrations.CreateModel(
name='Composition',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('quantite', models.FloatField(verbose_name="Quantité de l'ingrédient")),
('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='applipizza.ingredient')),
('pizza', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='applipizza.pizza')),
],
),
]
......@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'applipizza',
]
MIDDLEWARE = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment