ojengwa / django-simple-captcha

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

Captcha format should be configured individually for every captcha field #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Captcha format should be configured individually for every captcha field, 
like

    class UserCreationFormExtended(UserCreationForm): 
        captcha = CaptchaField(format="%(image)s <br/><br/> %(hidden_field)s 
%(text_field)s")

Now you can use only settings.CAPTCHA_OUTPUT_FORMAT, which in one per 
project. Not very cool.

Original issue reported on code.google.com by v.go...@gmail.com on 4 Jun 2010 at 4:05

GoogleCodeExporter commented 9 years ago
Fixed in r55. You can now pass an optional 'output_format' string to the 
field's constructor, e.g.

 captcha = CaptchaField(output_format=u'%(image)s %(hidden_field)s %(text_field)s') 

Original comment by mbonetti on 11 Jul 2010 at 11:08