Re: DB Field metadata

2006-01-03 Thread Jacob Kaplan-Moss
On Jan 3, 2006, at 8:52 AM, Dody Suria Wijaya wrote: Alice wrote: Is there a way of retrieving a database field's metadata? For example, the maxlength or choices parameters? It would be nice to automatically display the number of allowed characters for a given textfield. Hi Alice, try acc

Re: DB Field metadata

2006-01-03 Thread Dody Suria Wijaya
Alice wrote: Is there a way of retrieving a database field's metadata? For example, the maxlength or choices parameters? It would be nice to automatically display the number of allowed characters for a given textfield. Alice Hi Alice, try accessing via its class: Poll._meta.fields[2].ma