Hi all,
Let's assume i have to the following simple form:
class Form(forms.Form):
check = forms.BooleanField(
required=False,
)
# take into account only when 'check' is True
len = forms.IntegerField(
min_value=3,
max_value=5,
required=True,
)
On 2012.07.26. 17:44, Tomas Neme wrote:
class Form(forms.Form):
check = forms.BooleanField(
required=False,
)
# take into account only when 'check' is True
len = forms.IntegerField(
min_value=3,
max_value=5,
required=True,
)
What I w
rride. But you'll have to make sure you do the "Integer Validation"
check in your clean() method if you ignore that validation in clean_len().
clean__len():
return self.cleaned_data['len']
On Thu, Jul 26, 2012 at 12:21 PM, Zoltan Szalai <mailto:defaultd..
Hi,
Do you have any idea how could I run some custom sql that creates some C
functions before tests start to run?
django: 1.3.4, postgres 9.1
thx
Zoli
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to djang
Never mind, I just ended up modifying the default postgres template.
Altough a setting would be great where you could define the template the
test db is created from.
On 2012.10.26. 2:04, Zoltan Szalai wrote:
Hi,
Do you have any idea how could I run some custom sql that creates some
C
try not to use the same value ('about') for the name attribute of the
textarea and your submit button.
not sure it helps the situation though.
On 2013.09.30. 19:13, Marcin Szamotulski wrote:
ps. If I render the form with
enctype='multipart/form-data'>
{{ form.as_ul() }}
I get the sam
6 matches
Mail list logo