fix: add rent field to instance config
ci/woodpecker/push/woodpecker Pipeline failed Details

wip-payments
Aravinth Manivannan 2022-06-17 23:55:58 +05:30
parent 67d657e8fd
commit 391a3502e7
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
3 changed files with 22 additions and 2 deletions

View File

@ -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,
),
]

View File

@ -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,

View File

@ -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",