package - Django simple math captcha , how to pass question_tmpl as placeholder -


when using simple math catpcha , how can define custom value displayed, default 1

"what %(num1)i %(operator)s %(num2)i?" 

and want pass placeholder , did this

self.fields['captcha'].widget.attrs['placeholder'] = = "what %(num1)i %(operator)s %(num2)i?" 

but doesnt return numbers, whole string, renders %(num1)i %(operator)s %(num2)i?, want show whats 5 + 3, ideas why isnt working ?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -