use module-level function instead of lambda, create migrations for pending model changes
Created by: das-g
Use a module-level function instead of a lambda for model field default value. Lambdas aren't allowed, because they cannot be serialized. (ValueError: Cannot serialize function: lambda
)
Ran
./manage.py makemigrations
to produce a migration for this change and previous model changes not reflected in the migrations so far.