Browse Source

DIV-1041: Updates from PR feedback.

pull/170/head
Steven Ly 5 years ago
parent
commit
4c8705f5bf
2 changed files with 4 additions and 2 deletions
  1. +0
    -1
      .gitignore
  2. +4
    -1
      edivorce/apps/core/redis.py

+ 0
- 1
.gitignore View File

@ -32,7 +32,6 @@ var/
.installed.cfg .installed.cfg
*.egg *.egg
.python-version .python-version
Pipfile
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # Usually these files are written by a python script from a template


+ 4
- 1
edivorce/apps/core/redis.py View File

@ -93,7 +93,10 @@ class RedisStorage(Storage):
return name return name
def get_available_name(self, name, max_length=None): 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) name = self._full_key_name(name)
return super().get_available_name(name, max_length) return super().get_available_name(name, max_length)


Loading…
Cancel
Save