42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
# Generated by Django 3.2.16 on 2023-04-10 15:53
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('applications', '0012_visible'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Parameter',
|
|
fields=[
|
|
(
|
|
'id',
|
|
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
|
),
|
|
('label', models.CharField(max_length=100, verbose_name='Label')),
|
|
(
|
|
'name',
|
|
models.CharField(
|
|
help_text='Variable name, it is useful to prefix it with an unique application identifier.',
|
|
max_length=100,
|
|
verbose_name='Identifier',
|
|
),
|
|
),
|
|
(
|
|
'default_value',
|
|
models.CharField(blank=True, max_length=100, null=True, verbose_name='Default value'),
|
|
),
|
|
(
|
|
'application',
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE, to='applications.application'
|
|
),
|
|
),
|
|
],
|
|
),
|
|
]
|