google-code-export / django-simple-captcha

Automatically exported from code.google.com/p/django-simple-captcha
MIT License
0 stars 0 forks source link

More documentation? #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First of all, thanks for the simple, but very effective captcha implementation.
What i am missing is some documentation about the fields used in the forms.
I always design my own forms and if i use {{form.captcha}} i get 3 fields
generated (the image, a hidden one and the input field), now thats good so
far, but ugly from a layout view.

I'd like to be able to put the two fields (image and input) into some
separat table columns or divs, but for that, i need to know how to call
them in the form? I imagine something like:
<div>{{form.captcha.img}} {{form.captcha.hidden}}</div>
<div>{{form.captcha.input_field}}</div>

It would be great if you could provide some information about that in the
documentation.

Original issue reported on code.google.com by sver...@googlemail.com on 10 Mar 2010 at 7:38

GoogleCodeExporter commented 9 years ago
Interesting issue. 

Django does not expose the individual sub-fields in a MultiValueField, but I've 
found a workaround which I hope 
will suffice: see CAPTCHA_OUTPUT_FORMAT on 
http://code.google.com/p/django-simple-
captcha/wiki/CaptchaConfiguration

Original comment by mbonetti on 11 Mar 2010 at 10:17