@any_field.register(models.DateField)
def any_date_field(field, **kwargs):
    if field.auto_now or field.auto_now_add:
        return None
    from_date = kwargs.get('from_date', date(1990, 1, 1))
    to_date = kwargs.get('to_date', date.today())
    return xunit.any_date(from_date=from_date, to_date=to_date)
Stop consuming data from a producer, without disconnecting.
dataset/ETHPy150Open kmmbvnr/django-any/django_any/models.py/any_date_field--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/_pollingfile.py/_PollableWritePipe.unregisterProducer