Skip to content

Commit

Permalink
Add fields to preboots
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Aug 8, 2024
1 parent 8afdd0c commit 7309fd6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/ralph/deployment/migrations/0008_auto_20240705_1210.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 2.0.13 on 2024-07-05 12:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('deployment', '0007_auto_20240506_1633'),
]

operations = [
migrations.AddField(
model_name='preboot',
name='critical_after',
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='preboot',
name='disappears_after',
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='preboot',
name='warning_after',
field=models.DateField(blank=True, null=True),
),
]
3 changes: 3 additions & 0 deletions src/ralph/deployment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ class Preboot(AdminAbsoluteUrlMixin, NamedMixin):
blank=True,
default='',
)
warning_after = models.DateField(null=True, blank=True)
critical_after = models.DateField(null=True, blank=True)
disappears_after = models.DateField(null=True, blank=True)

used_counter = models.PositiveIntegerField(default=0, editable=False)

Expand Down

0 comments on commit 7309fd6

Please sign in to comment.