forked from 0x2620/pandora
find exact titles
This commit is contained in:
parent
5f740534b5
commit
1df8b264f9
2 changed files with 4 additions and 2 deletions
|
|
@ -657,8 +657,10 @@ class Item(models.Model):
|
|||
|
||||
def update_facets(self):
|
||||
#FIXME: what to do with Unkown Director, Year, Country etc.
|
||||
for key in self.facet_keys:
|
||||
for key in self.facet_keys + ['title']:
|
||||
current_values = self.get(key, [])
|
||||
if key == 'title':
|
||||
current_values += self.get('original_title', [])
|
||||
#FIXME: is there a better way to build name collection?
|
||||
if key == 'name':
|
||||
current_values = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue