Skip to content

Commit d758aed

Browse files
committed
Don't require the start date for a nutritional plan
If not set, we use the current date as default
1 parent cf17230 commit d758aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wger/nutrition/models/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from wger.utils.cache import cache_mapper
3232
from wger.weight.models import WeightEntry
3333

34-
3534
logger = logging.getLogger(__name__)
3635

3736

@@ -61,6 +60,7 @@ class Meta:
6160

6261
start = models.DateField(
6362
_('Start date'),
63+
blank=True,
6464
default=datetime.date.today,
6565
)
6666

0 commit comments

Comments
 (0)