﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19340	django.forms.Field is not thread-safe	anonymous	nobody	"django.forms.Field has the 'creation_counter' attribute which is incremented when an instance of django.forms.Field (or one of its subclasses) is created. I DO understand that it's a bit unusual to create
forms in the runtime, so this must not be a big issue (or not a bug at all), but it should be documented somewhere.


{{{
In [231]: from django import forms

In [232]: forms.Field.creation_counter
Out[232]: 0

In [233]: from threading import Thread

In [234]: def f():
   .....:       for x in xrange(10000):
   .....:               forms.Field()
   .....:      

In [235]: ths = [Thread(target=f) for x in xrange(4)]

In [236]: for t in ths: t.start()

In [237]: for t in ths: t.join()

In [240]: forms.Field.creation_counter
Out[240]: 35409
}}}"	Bug	closed	Forms	1.4	Normal	invalid	thread-safe		Unreviewed	0	0	0	0	0	0
