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
Post a Comment