@ -243,5 +243,3 @@ def update_fields(sender, instance, **kwargs):
def create_searches(sender, instance, created, **kwargs):
if created:
instance.create_searches()
SearchResultsThread(instance).start()
@ -165,7 +165,7 @@
$.post("/ru/trademarks/online-search/request/",
{ 'keyword': request}).done(function(data) {
var tm_count = Math.floor(Math.random() * (3000000 - 1000000) + 1000000);
$('.trademark-search-count').text(tm_count + ' знаков')
$('.trademark-search-count').text(tm_count.toLocaleString() + ' знаков')
$count.show(500);
$identity.delay(3000).show(500);
$contains.delay(6000).show(500);
@ -59,7 +59,7 @@ class Search(generic.View):
def get(self, request, slug):
keyword = get_object_or_404(Keyword, slug=slug)
# keyword.load_results()
keyword.load_results()
identity = keyword.searches.filter(similarity=146)[0]