yunojuno / django-charid-field

Provides a prefixable, string-based ID field for your Django models. Supports cuid, ksuid, ulid & more.
MIT License
33 stars 4 forks source link

Migrations should store original default, not wrapped default #5

Closed djm closed 3 years ago

djm commented 3 years ago

As the title, if migrations attempt to serialize our lambda wrappers - they will fail hard. Luckily that's not what we want to do anyway, as migrations should serialize the data they were initialised with - which is the original default.