Re: Need help with a modelChoiceField

2009-08-07 Thread Bobby Roberts
> label_from_instance was added after that version. For now the only > thing you can do is to define __unicode__ on the Upload model, and > that will provide the value that is displayed. > -- > DR. worked like a charm Daniel... thanks again! --~--~-~--~~~---~--~~

Re: Need help with a modelChoiceField

2009-08-07 Thread Karen Tracey
On Fri, Aug 7, 2009 at 2:57 PM, Daniel Roseman wrote: > > On Aug 7, 7:33 pm, Bobby Roberts wrote: > > hi. does anyone have any ideas why this is not working... we are > > using django 0.96 on this particular server. > > label_from_instance was added

Re: Need help with a modelChoiceField

2009-08-07 Thread Daniel Roseman
On Aug 7, 7:33 pm, Bobby Roberts wrote: > hi.  does anyone have any ideas why this is not working... we are > using django 0.96 on this particular server. label_from_instance was added after that version. For now the only thing you can do is to define __unicode__ on the

Re: Need help with a modelChoiceField

2009-08-07 Thread Bobby Roberts
hi. does anyone have any ideas why this is not working... we are using django 0.96 on this particular server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Need help with a modelChoiceField

2009-08-07 Thread Bobby Roberts
ok here's my form: class ParseFileChoiceField (forms.ModelChoiceField): def label_from_instance (self,obj): return obj.ProcessFile class FrmParser (forms.Form): parsefile = ParseFileChoiceField(queryset=Upload.objects.filter