Do some random coding for Distribotr numbers and Component parameters. This is probably not the most ideal solution. Will change this later
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 3.2 on 2021-11-13 15:08
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('parts', '0003_alter_componentparametertype_unit'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='componentparametertype',
|
||||
name='engineering_unit',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='componentparametertype',
|
||||
name='freetext_parameter',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='componentparametertype',
|
||||
name='it_unit',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='componentparametertype',
|
||||
name='parameter_type',
|
||||
field=models.CharField(choices=[('F', 'Free Text'), ('N', 'Standard float number'), ('E', 'Engineering / SI Unit'), ('I', 'IT Type')], default='N', max_length=1),
|
||||
),
|
||||
]
|
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 3.2 on 2021-11-13 19:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('parts', '0004_auto_20211113_1508'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='distributornum',
|
||||
options={'ordering': ['distributor__name']},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='componentparameter',
|
||||
name='value',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user