'Support EXTRACT with a user-defined function django_date_extract()
that\'s registered in connect(). Use single quotes because this is a
string and could otherwise cause a collision with a field name.'

def date_extract_sql(self, lookup_type, field_name):

    return ("django_date_extract('%s',    %s)" % (lookup_type.lower(), field_name))
