File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
from .models import AlgoliaIndex
9
9
from .settings import SETTINGS
10
10
from .version import VERSION
11
+ from algoliasearch .version import VERSION as CLIENT_VERSION
12
+ from platform import python_version
11
13
12
14
logger = logging .getLogger (__name__ )
13
15
@@ -37,7 +39,8 @@ def __init__(self, settings=SETTINGS):
37
39
self .__registered_models = {}
38
40
self .client = algoliasearch .Client (app_id , api_key )
39
41
self .client .set_extra_header ('User-Agent' ,
40
- 'Algolia for Django {}' .format (VERSION ))
42
+ 'Algolia for Python (%s); Python (%s); Algolia for Django (%s)'
43
+ % (CLIENT_VERSION , python_version (), VERSION ))
41
44
42
45
def is_registered (self , model ):
43
46
"""Checks whether the given models is registered with Algolia engine"""
You can’t perform that action at this time.
0 commit comments