From dbfe712ad91c3c864847ceda351b6cc3f6e9505f Mon Sep 17 00:00:00 2001 From: jakeway Date: Fri, 8 Jun 2018 11:27:01 -0400 Subject: [PATCH] Add . seperator when removing keys; bump version --- autocompleter/__init__.py | 2 +- autocompleter/base.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autocompleter/__init__.py b/autocompleter/__init__.py index b9301cb..e3b0eb2 100644 --- a/autocompleter/__init__.py +++ b/autocompleter/__init__.py @@ -1,4 +1,4 @@ -VERSION = (0, 6, 1) +VERSION = (0, 6, 2) from autocompleter.registry import registry, signal_registry from autocompleter.base import AutocompleterBase, AutocompleterModelProvider, AutocompleterDictProvider, Autocompleter diff --git a/autocompleter/base.py b/autocompleter/base.py index 5dbb16c..f146f49 100644 --- a/autocompleter/base.py +++ b/autocompleter/base.py @@ -486,7 +486,7 @@ def remove_all(self): # cleaned up if their ID changed but for some reason we did not # delete the old ID... Here we delete what's left, just to be safe key = AUTO_BASE_NAME % (provider_name,) - key += '*' + key += '.*' leftovers = REDIS.keys(key) # Start pipeline diff --git a/setup.py b/setup.py index d9ebaa4..878385c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='django-autocompleter', - version="0.6.1", + version="0.6.2", description='A redis-backed autocompletor for Django projects', author='Ara Anjargolian', author_email='ara818@gmail.com',