hi everybody,
i have a problem with forms..

suppose we have a model class as like this
class Something(models.Model):
    another_model = models.ForeignKey(AnotherModel, verbose_name=_
('AnotherModel'))
    ....
    ....

so i have a form for this class such as belove
class SomethingForm(ModelForm):
    #another_model = forms.ModelChoiceField(AnotherModel.objects.all
().filter(something),label=('smthng'))
    class Meta:
         model=Something


here I can only do something here based filtering by filter(something)
but i wanna filter something that not static ..
i wanna filtering by dynamic parameters
how can i do that ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to