In my django app i have a form which is doing condition testing after getting form data, here is an example of what i am doing.
form = SomeForm(data=request.POST or None)
if request.method == 'POST':
data = form.cleaned_data
xyz = data['xyz']
i have to perform some validation rules for xyz, what i am trying to achieve is this
if (xyz = somecodition)