forked from Hostea/dashboard
fix: add rent field to instance config
parent
67d657e8fd
commit
391a3502e7
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 4.0.3 on 2022-06-17 18:00
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('dash', '0003_alter_instance_name'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='instanceconfiguration',
|
||||||
|
name='rent',
|
||||||
|
field=models.FloatField(verbose_name='Monthly rent of instance in Euros'),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
]
|
|
@ -26,6 +26,7 @@ class InstanceConfiguration(models.Model):
|
||||||
unique=True,
|
unique=True,
|
||||||
max_length=32,
|
max_length=32,
|
||||||
)
|
)
|
||||||
|
rent = models.FloatField("Monthly rent of instance in Euros", null=False)
|
||||||
ram = models.FloatField(
|
ram = models.FloatField(
|
||||||
"The amount of RAM an instance will have",
|
"The amount of RAM an instance will have",
|
||||||
null=False,
|
null=False,
|
||||||
|
|
Loading…
Reference in New Issue