Closed amchii closed 3 years ago
I agree there should be a way to add custom fields.
In the meantime, would subclassing models.PositiveIntegerField
be an option?
In the meantime, would subclassing
models.PositiveIntegerField
be an option?
Yes, I've thought about it, but legacy code with specified database works fine and models.PositiveBigIntegerField
new in Django 3.1
.
I've merged in support for custom fields in https://github.com/fcurella/django-fakery/pull/63 and released it as v3.1.0. Let me know if you get into any issues :)
OK, I will. Thanks!
I have a custom field inherits from
models.IntegerField
:but
django-fakery
treats it asmodels.IntegerField
and makes a negative number, then error occured. So could you make an api to custom mappings types for custom fields😄?