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,
|
||||
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,
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue