Add fulltext search
This commit is contained in:
parent
aa1b627e6f
commit
36e505952c
7 changed files with 96 additions and 76 deletions
|
@ -107,9 +107,7 @@ class License(models.Model):
|
|||
|
||||
class TranslatedProblemQuerySet(SearchQuerySet):
|
||||
def __init__(self, **kwargs):
|
||||
super(TranslatedProblemQuerySet, self).__init__(
|
||||
("code", "name", "description"), **kwargs
|
||||
)
|
||||
super(TranslatedProblemQuerySet, self).__init__(("code", "name"), **kwargs)
|
||||
|
||||
def add_i18n_name(self, language):
|
||||
return self.annotate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue