Changes between Version 1 and Version 2 of Ticket #32689


Ignore:
Timestamp:
Apr 27, 2021, 11:05:43 PM (4 years ago)
Author:
Samuel Bishop
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32689 – Description

    v1 v2  
    66
    77I would have expected either a clear warning detailing why my choice of callable object for the `default=` will cause issues, or I would have expected `makemigrations` to not mutate my callable like this.
     8
     9Root cause: Turns out this is a serialisation fault. The migration serialiser doesn't throw any kind of error or warning and just mutates the callable instead of preventing me from using an invalid default callable that the migration framework wont be able to serialise. A simple wrapper function added to the custom field library solves the matter entirely, however the underlying issue of the migration framework behaviour is worth looking at improving.
Back to Top