diff --git a/CTOAsYouGo/core/__pycache__/models.cpython-310.pyc b/CTOAsYouGo/core/__pycache__/models.cpython-310.pyc index 60114d4..f57ff23 100644 Binary files a/CTOAsYouGo/core/__pycache__/models.cpython-310.pyc and b/CTOAsYouGo/core/__pycache__/models.cpython-310.pyc differ diff --git a/CTOAsYouGo/core/models.py b/CTOAsYouGo/core/models.py index ad6b48a..99a3af4 100644 --- a/CTOAsYouGo/core/models.py +++ b/CTOAsYouGo/core/models.py @@ -3,13 +3,16 @@ from django.core.validators import MinValueValidator, MaxValueValidator import uuid +def default_json_value(): + return {"details": "todo"} + class Task(models.Model): title = models.CharField(max_length=255) description = models.TextField() price_from = models.IntegerField(validators=[MinValueValidator(0)]) price_to = models.IntegerField(validators=[MinValueValidator(0)]) - needed_information = models.JSONField(default=dict) + needed_information = models.JSONField(default=default_json_value) order = models.IntegerField(null=True) def __str__(self): diff --git a/CTOAsYouGo/db.sqlite3 b/CTOAsYouGo/db.sqlite3 index 583b68d..3574306 100644 Binary files a/CTOAsYouGo/db.sqlite3 and b/CTOAsYouGo/db.sqlite3 differ