forked from Hostea/dashboard
fix: don't save Gitea admin passwords in DB
parent
e4a7310c79
commit
8baefeb413
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 4.0.3 on 2022-06-28 09:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("infrastructure", "0003_rename_creted_instancecreated_created"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="instancecreated",
|
||||
name="gitea_password",
|
||||
field=models.CharField(
|
||||
default=None,
|
||||
max_length=32,
|
||||
verbose_name="Gitea password of this deployment",
|
||||
),
|
||||
),
|
||||
]
|
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 4.0.3 on 2022-06-28 14:26
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("infrastructure", "0004_alter_instancecreated_gitea_password"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="instancecreated",
|
||||
name="gitea_password",
|
||||
),
|
||||
]
|
|
@ -19,9 +19,4 @@ from dash.models import Instance
|
|||
|
||||
class InstanceCreated(models.Model):
|
||||
instance = models.ForeignKey(Instance, on_delete=models.PROTECT)
|
||||
gitea_password = models.CharField(
|
||||
"Gitea password of this deployment",
|
||||
default=None,
|
||||
max_length=32,
|
||||
)
|
||||
created = models.BooleanField(default=False)
|
||||
|
|
Loading…
Reference in New Issue