Re: 1.7 migrations: problem with renamed upload_to function on FileField

2014-11-12 Thread Markus Holtermann
Hey Hans, As stated in the Docs (https://docs.djangoproject.com/en/1.7/topics/migrations/#historical-models) References to functions in field options such as upload_to and limit_choices_to are serialized in migrations, so the functions will need to be kept around for as long as there is a migr

1.7 migrations: problem with renamed upload_to function on FileField

2014-11-12 Thread Hans Lawrenz
I'm having a problem generating migrations after changing the function used for the upload_to parameter on a FileField. After removing the old function from my code and switching to using a closure to generate the function used by upload_to I get the following exception upon running makemigratio