From 4c8705f5bf6426a23ebbf572816b0099906c3a65 Mon Sep 17 00:00:00 2001 From: Steven Ly <6807939+orcsly@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:07:47 -0700 Subject: [PATCH] DIV-1041: Updates from PR feedback. --- .gitignore | 1 - edivorce/apps/core/redis.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 630302d6..38c3a5e0 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,6 @@ var/ .installed.cfg *.egg .python-version -Pipfile # PyInstaller # Usually these files are written by a python script from a template diff --git a/edivorce/apps/core/redis.py b/edivorce/apps/core/redis.py index a7807fc3..c84c99ab 100644 --- a/edivorce/apps/core/redis.py +++ b/edivorce/apps/core/redis.py @@ -93,7 +93,10 @@ class RedisStorage(Storage): return name def get_available_name(self, name, max_length=None): - """Overwrite existing file with the same name.""" + """ + Allow storage backend to generate a new name if there is already an existing file. Not used for this Redis + implementation. + """ name = self._full_key_name(name) return super().get_available_name(name, max_length)