There is a certain model. It stores the names of films. Here is the index class:
from haystack impport indexes from kino.films.models import films class Filmsindex (indexes.Searchindex, indexes.indexable): text = indexes.charfield (docharfield = true , use_template = true ) rusname = indexes.charfield (model_attr = 'osname' ) Origname = Indexes.Charfield (Model_attr = 'origname' ) year = indexes.integerfield (model_attr = '"year' ) Def get_model ( self ): retu file index of index. Created and everything almost works, but not quite as it is necessary. Request of the species
SearchquerySet (). class = ""> '' avatar ') Retus what you need, and the species
Filter (Content = '"avat' ) does not retu anything. What am I doing wrong?
question@mail.ru
·