Changes between Initial Version and Version 1 of Ticket #24368
- Timestamp:
- Feb 19, 2015, 7:42:50 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24368
- Property Summary FileField needlessly serializes upload_to; same problems with some other fields → FileField needlessly serializes upload_to
-
Ticket #24368 – Description
initial v1 1 1 django.db.models.fields.FileField explicitly includes upload_to in the serialization process. This takes no part in the actual migration process but causes errors if the value of the field is a lambda function. Instead, the deconstruct() functions for FileField and other fields should only serialize arguments relevant to subsequent ALTER commands issued to the DBMS. 2 2 3 Other places where this problem arises include ForeignKey.limit_choices_to — do changes to this attribute mandate a new migration and is it appropriate to have it fail if the value is a lambda?4 5 3 Once fixed, #22351 can be reverted.