def before_add(self):
        if self.auto:
            self.ignore = True
            self.generate_auto_fields()
Generate auto fields for this date part if auto is True.
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/fields.py/DatePartField.before_add