(cls, object_instance)
return object_instance.pk
The default behavior is to use the Django object's pk (id) as the
        elasticseach index id (_id). If needed, this method can be overloaded
        to change this default behavior.
The default behavior is to use the Django object's pk (id) as the
        elasticseach index id (_id). If needed, this method can be overloaded
        to change this default behavior.
The default behavior is to use the Django object s pk ( id ) as the elasticseach index id ( _id ) . If needed this method can be overloaded to change this default behavior .
def generate_id(cls, object_instance):
        """
        The default behavior is to use the Django object's pk (id) as the
        elasticseach index id (_id). If needed, this method can be overloaded
        to change this default behavior.
        """
        return object_instance.pk
def generate_id ( cls , object_instance ) : return object_instance . pk