diff --git a/dash/migrations/0004_instanceconfiguration_rent.py b/dash/migrations/0004_instanceconfiguration_rent.py new file mode 100644 index 0000000..19f2056 --- /dev/null +++ b/dash/migrations/0004_instanceconfiguration_rent.py @@ -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, + ), + ] diff --git a/dash/models.py b/dash/models.py index f932660..382b9b9 100644 --- a/dash/models.py +++ b/dash/models.py @@ -26,6 +26,7 @@ class InstanceConfiguration(models.Model): unique=True, max_length=32, ) + rent = models.FloatField("Monthly rent of instance in Euros", null=False) ram = models.FloatField( "The amount of RAM an instance will have", null=False, diff --git a/dashboard/settings.py b/dashboard/settings.py index bd25088..2444308 100644 --- a/dashboard/settings.py +++ b/dashboard/settings.py @@ -138,8 +138,8 @@ HOSTEA = { "INSTANCE_MAINTAINER_CONTACT": "contact@hostea.example.org", "ACCOUNTS": {"MAX_VERIFICATION_TOLERANCE_PERIOD": 60 * 60 * 24}, # in seconds "META": { - "GITEA_INSTANCE": "https://gitea.hostea.org", # meta Gitea insatnce - "GITEA_ORG_NAME": "Hostea", # Organisation name on Hostea meta instance + "GITEA_INSTANCE": "https://gitea.hostea.org", # meta Gitea insatnce + "GITEA_ORG_NAME": "Hostea", # Organisation name on Hostea meta instance # Repository dedicated for handling support # ref: https://gitea.hostea.org/Hostea/july-mvp/issues/17 "SUPPORT_REPOSITORY": "support",