Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #43 from DonHaul/add-defaults-optional-fields
Browse files Browse the repository at this point in the history
workflow: adding default to workflow core and is_update field
  • Loading branch information
drjova authored Jun 28, 2024
2 parents db4280c + ac6bdc3 commit 2f47baa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.6 on 2024-06-20 09:07

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("workflows", "0006_workflow__created_at_workflow__updated_at"),
]

operations = [
migrations.AlterField(
model_name="workflow",
name="core",
field=models.BooleanField(default=False),
),
migrations.AlterField(
model_name="workflow",
name="is_update",
field=models.BooleanField(default=False),
),
]
4 changes: 2 additions & 2 deletions backoffice/workflows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Workflow(models.Model):
choices=STATUS_CHOICES,
default=DEFAULT_STATUS_CHOICE,
)
core = models.BooleanField()
is_update = models.BooleanField()
core = models.BooleanField(default=False)
is_update = models.BooleanField(default=False)

_created_at = models.DateTimeField(auto_now_add=True)
_updated_at = models.DateTimeField(auto_now=True)
Expand Down

0 comments on commit 2f47baa

Please sign in to comment.