diff --git a/db.sqlite3 b/db.sqlite3 index 77b1cd9..787a66e 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/workout/migrations/0011_alter_completedworkout_notes.py b/workout/migrations/0011_alter_completedworkout_notes.py new file mode 100644 index 0000000..e13a67d --- /dev/null +++ b/workout/migrations/0011_alter_completedworkout_notes.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.2 on 2023-07-03 01:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('workout', '0010_alter_plannedworkout_on_date'), + ] + + operations = [ + migrations.AlterField( + model_name='completedworkout', + name='notes', + field=models.TextField(blank=True, null=True), + ), + ] diff --git a/workout/models.py b/workout/models.py index d56826c..a3481ca 100644 --- a/workout/models.py +++ b/workout/models.py @@ -70,7 +70,7 @@ class CompletedWorkout(models.Model): ) total_time = models.IntegerField(null=True, blank=True) workout_start_time = models.DateTimeField(null=False, blank=False) - notes = models.TextField(null=False, blank=False) + notes = models.TextField(null=True, blank=True) total_calories = models.FloatField(null=True, blank=True) def __str__(self):