Re: function to generate choices list

2007-07-10 Thread David Reynolds
Aidas, On 8 Jul 2007, at 3:51 pm, Aidas Bendoraitis wrote: I think, the problem would be solved if you assigned a class overriding list instead of a preformed list to the choices. Check XFieldList for a living example: http://www.djangosnippets.org/snippets/51/ Thanks for your suggestion.

Re: function to generate choices list

2007-07-08 Thread Aidas Bendoraitis
I think, the problem would be solved if you assigned a class overriding list instead of a preformed list to the choices. Check XFieldList for a living example: http://www.djangosnippets.org/snippets/51/ Regards, Aidas Bendoraitis aka Archatas On 7/6/07, David Reynolds <[EMAIL PROTECTED]>

function to generate choices list

2007-07-06 Thread David Reynolds
Hi, I'm trying to pre-populate a choices list for a CharField from some folders on the file system, I was doing this by calling a function within the models.py which assigned the list of folders to a variable which was then used in the charfield. This all worked perfectly using the