d120 / pyofahrt

Verwaltungssoftware für die Erstsemesterfahrt
GNU Affero General Public License v3.0
4 stars 1 forks source link

Broken migration due to default generation in workshop/slots #77

Closed miterion closed 6 years ago

miterion commented 6 years ago

Currently the default value for new slot objects is generated by using some init code. This breaks! Every migration, that changes one of the two fields using the default value causes a renewed calculation, instead of the desired runtime calculation. A better method would be to create a callable function, which would be evaluated at runtime.