> You aren't actually using that Field though, you need to use it in place of > ModelChoiceField where you want that behavior. > > Alex
here's what i've got: class FrmWebPage (forms.Form): active = forms.ChoiceField(required=True, choices=active_choices, widget=forms.RadioSelect(attrs={'class':'choiceselect'})) page_category_id = forms.MyModelChoiceField (queryset=PageCategory.objects, empty_label='Choose',required=True, widget=forms.Select(attrs={'class':'dropbox'})) on_rss = forms.ChoiceField(required=True, choices=active_choices, widget=forms.RadioSelect(attrs={'class':'choiceselect'})) tags=forms.CharField(max_length=254, required=False, widget=forms.TextInput(attrs={'class':'reallylargetextbox'})) url_slug = forms.SlugField (max_length=254, required=True, widget=forms.TextInput(attrs={'class':'reallylargetextbox'})) blurb = forms.CharField(max_length=254, required=False, widget=forms.Textarea(attrs={'class':'mediumblob'})) page_weight = forms.ChoiceField(required=True, choices=weight_choices, widget=forms.Select(attrs= {'class':'dropbox'})) browser_title = forms.CharField(max_length=254, required=True, widget=forms.TextInput(attrs={'class':'reallylargetextbox'})) meta_keywords = forms.CharField(max_length=254, required=False, widget=forms.TextInput(attrs={'class':'reallylargetextbox'})) meta_description = forms.CharField(max_length=254, required=False, widget=forms.TextInput(attrs={'class':'reallylargetextbox'})) template_id=forms.ModelChoiceField (queryset=Template.objects,required=True, empty_label='Choose',widget=forms.Select(attrs={'class':'dropbox'})) body = forms.CharField (required=True,widget=forms.Textarea(attrs= {'cols':107,'rows':30})) class MyModelChoiceField (page_category_id): def label_from_instance(self,obj): return "My Object #%i" % obj.id When i run it, i get this traceback: Error was: 'module' object has no attribute 'MyModelChoiceField' any ideas? The docs aren't very helpful to someone new to python --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---