Allow null in search_index since the model field allows null
Updated version. Moved version into __init__ and added to context.