复制代码
Attribute Reference
The class exposes the following useful attributes/properties:
app_label - The application the model is attached to.
model_name - The model’s name.
pk - The primary key of the model.
score - The score provided by the search engine.
object - The actual model instance (lazy loaded).
model - The model class.
verbose_name - A prettier version of the model’s class name for display.
verbose_name_plural - A prettier version of the model’s plural class name for display.
searchindex - Returns the SearchIndex class associated with this result.
distance - On geo-spatial queries, this returns a Distance object representing the distance the result was fro
m the focused point.
复制代码
这里我使用的是object,然后通过{{i.object.description}}这样的模板来显示细节的,其他的地方就是具体
项目具体细节咯~