class PartLookUpHaystackSerializer(HaystackFacetSerializer): serialize_objects = True
class Meta: # The `index_classes` attribute is a list of which search indexes # we want to include in the search. index_classes = [PartIndex] # The `fields` contains all the fields we want to include. # NOTE : Make sure you don't confuse these with model attributes. These # fields belong to the search index! fields = [ 'title', 'description', 'partnumber', 'make', 'make_slug', 'year', 'fitment_model', 'fitment_model_slug', 'engine', 'parttype_slug', 'parttype', 'submodel', 'subcategory', 'engine', 'slug', 'id', 'coreprice', 'price', 'images', 'mfg_name', 'mfg_name_slug', 'sub_title', 'zipcode', 'third_party_name', 'quantity', 'modified_price', 'core_price', 'part_warranty', 'minimum_order_qty' ] field_options = { 'title': {}, 'description': {}, 'make_slug':{}, 'year':{}, 'fitment_model_slug':{}, 'parttype_slug':{}, 'submodel':{}, 'subcategory':{}, 'engine':{}, 'mfg_name':{}, 'mfg_name_slug':{} } -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c3f112d8-dbbb-4e17-9b26-15311760c399%40googlegroups.com.