t;, are %s handicapped" %
(request.POST['handicapped'])
but it doesn't _work at all_.
The database is defined all right, I should say.
I get lots of different types of errors - sorry I can't include them now,
but definitely not week if the problem is still outstandin
e name of model's
application
model_name='child', # the name of a model with the
method
method_name='get_children', # the name of queryset method
)
It is for finding a child who may or may not have one of two types of
handica
super(FilterForm, self).__init__(*args, **kwargs)
if 0 == len(self.data):
self.fields['age'].queryset = Child.objects.none()
# assign a widget to second select field
self.fields['age'].widget = ChainedSelectWidget(
parent_na
y males or females without
selecting an age...
-Eileen
from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from django.http import HttpResponse
from django.db.models imp
rch requires that an age to be chosen whether or not the
> gender is, and I'd like to make the age optional as well. I.e get all the
> children.
> Additionally, I'd like to search for only males or females without
> selecting an age...
>
> -Eileen
> fro
well, you certainly got me correct! I'm fairly new to python - didn't do
much coding to learn. Trial by fire, sort of. and the original person who
put this together is now gone from the company and won't answer any
outstanding questions. Plus, I *think* he got most of the code from 3rd
party s
;].data == True:
q =
context['child_filter'].filter(Q(request.POST.get('mother_alive') == 0 and
request.POST.get('father_alive') == 0))
but I got an error on it.
does anyone know what I did wrong?
-Eileen
--
You received this message because you are s
Hi,
I'm a newbie and I want to change the Django SelectDateWidget to
SelectMonthDayWidget because I can't use the year in my application. I had
been getting another error (which I don't recall right now) on the
statement that started 'html['month']' so, I decided to convert it to
command line t
o I'd be able to detect
whether the child is an orphan or not. In MySQL i believe it'd look like
this:
orphan varchar(101) GENERATED ALWAYS AS (mother_alive+father_alive)
VIRTUAL,
I don't know how to change my model to do that...
Any help?
-Eileen
--
You received this mes
9 matches
Mail list logo