paulocheque / django-dynamic-fixture

A complete library to create dynamic model instances for testing purposes.
http://django-dynamic-fixture.readthedocs.io/
Other
390 stars 67 forks source link

Allow `Mask` objects as lessons for unique fields #153

Closed PoByBolek closed 1 year ago

PoByBolek commented 1 year ago

Fixes #152.

It's technically possible to use Mask('#####') on integer fields because Django will convert the string to an integer when saving the model to the database. However, the model instance keeps the string value which makes working with those fields afterwards pretty awkward...