Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storages #103

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Storages #103

wants to merge 9 commits into from

Conversation

MichalMaM
Copy link

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.



class BaseStorage(object):
model_class = CaptchaStore
Copy link
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