fix: add rent field to instance config
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
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,
|
||||||
|
|
|
@ -138,8 +138,8 @@ HOSTEA = {
|
||||||
"INSTANCE_MAINTAINER_CONTACT": "contact@hostea.example.org",
|
"INSTANCE_MAINTAINER_CONTACT": "contact@hostea.example.org",
|
||||||
"ACCOUNTS": {"MAX_VERIFICATION_TOLERANCE_PERIOD": 60 * 60 * 24}, # in seconds
|
"ACCOUNTS": {"MAX_VERIFICATION_TOLERANCE_PERIOD": 60 * 60 * 24}, # in seconds
|
||||||
"META": {
|
"META": {
|
||||||
"GITEA_INSTANCE": "https://gitea.hostea.org", # meta Gitea insatnce
|
"GITEA_INSTANCE": "https://gitea.hostea.org", # meta Gitea insatnce
|
||||||
"GITEA_ORG_NAME": "Hostea", # Organisation name on Hostea meta instance
|
"GITEA_ORG_NAME": "Hostea", # Organisation name on Hostea meta instance
|
||||||
# Repository dedicated for handling support
|
# Repository dedicated for handling support
|
||||||
# ref: https://gitea.hostea.org/Hostea/july-mvp/issues/17
|
# ref: https://gitea.hostea.org/Hostea/july-mvp/issues/17
|
||||||
"SUPPORT_REPOSITORY": "support",
|
"SUPPORT_REPOSITORY": "support",
|
||||||
|
|
Loading…
Reference in New Issue