Skip to content

Storages#103

Open
MichalMaM wants to merge 9 commits into
mbi:masterfrom
MichalMaM:storages
Open

Storages#103
MichalMaM wants to merge 9 commits into
mbi:masterfrom
MichalMaM:storages

Conversation

@MichalMaM
Copy link
Copy Markdown

Hi, I have added the option to choose a storage backend for storing captcha records (with default DB backend). Please look at the code if it is usable for you.

Comment thread captcha/storages/base.py


class BaseStorage(object):
model_class = CaptchaStore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that model_class should be set in the DB Storage and not in the base storage. I see that it is used to raise DoesNotExist exception but probably will be better if there is a custom exception which will be common for all storages.

@vstoykov vstoykov mentioned this pull request Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants