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

File is saved twice in cache with two different cache keys #29

Open
erny opened this issue Mar 8, 2020 · 1 comment
Open

File is saved twice in cache with two different cache keys #29

erny opened this issue Mar 8, 2020 · 1 comment

Comments

@erny
Copy link

erny commented Mar 8, 2020

The widgets.ResubmitBaseWidget.value_from_datadict is called twice, once when validating a form (during a POST) and may be called again when rendering the form if it is invalid.

It would be nice to check if self.cache_key is already set before setting it.

@erny
Copy link
Author

erny commented Mar 9, 2020

Please check PR #30.

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

No branches or pull requests

1 participant