I have a model.py
class selection(models.Model):
    select=(
    (A','A'),
    ('B','B'),
    ('C','C'),


    )

options=models.CharField(max_length=7,choices=select)


and form.py

class order(forms.ModelForm):
    class Meta:
        model=selection
        fields=('Pay_options,)


I want to write a view.py that check the form for the choice that is
selected but i don't know how to get started. for example if a user select
option A, i want to perform some query. I want to know how to check for the
options that are selected before i can performing a query. Appreciate any
assistances.

cheers,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y5UoHSSK0pPMwuzSyStwgj9fpmPF%3DLRaKFbfNZuQbTfAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to