@any_field.register(models.NullBooleanField)
def any_nullboolean_field(field, **kwargs):
    return random.choice([None, True, False])
Return random value for NullBooleanField
dataset/ETHPy150Open kmmbvnr/django-any/django_any/models.py/any_nullboolean_field