Changes between Initial Version and Version 1 of Ticket #24368


Ignore:
Timestamp:
Feb 19, 2015, 7:42:50 AM (10 years ago)
Author:
Roman Odaisky
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24368

    • Property Summary FileField needlessly serializes upload_to; same problems with some other fieldsFileField needlessly serializes upload_to
  • Ticket #24368 – Description

    initial v1  
    11django.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.
    22
    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 
    53Once fixed, #22351 can be reverted.
Back to Top