If one of the unique_fields is the model's AutoField, return the field name, otherwise return None

def get_auto_field_name(self, model_class):
        """
        If one of the unique_fields is the model's AutoField, return the field name, otherwise return None
        """
        # Get auto field name (a model can only have one AutoField)
        for field in model_class._meta.fields:
            if isinstance(field, AutoField):
                return field.column

        return None