Skip to content

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