Re: Meta-information for model and form fields

2009-02-01 Thread Malcolm Tredinnick
On Sat, 2009-01-31 at 13:13 -0800, Vinay Sajip wrote: > > > On Jan 30, 1:36 am, Malcolm Tredinnick > wrote: > > On Wed, 2009-01-28 at 23:21 -0800, Vinay Sajip wrote: > > > > [...] > > > > > I was hoping there was another way. Of course subclassing's not hard > > > to

Re: Meta-information for model and form fields

2009-01-31 Thread Vinay Sajip
On Jan 30, 1:36 am, Malcolm Tredinnick wrote: > On Wed, 2009-01-28 at 23:21 -0800, Vinay Sajip wrote: > > [...] > > > I was hoping there was another way. Of course subclassing's not hard > > to do, but it means doing it for every field class. I was looking at > >

Re: Meta-information for model and form fields

2009-01-29 Thread Malcolm Tredinnick
On Wed, 2009-01-28 at 23:21 -0800, Vinay Sajip wrote: [...] > I was hoping there was another way. Of course subclassing's not hard > to do, but it means doing it for every field class. I was looking at > moving an application over from SQLAlchemy, which offers this feature > both for models and

Re: Meta-information for model and form fields

2009-01-28 Thread Vinay Sajip
On Jan 29, 12:35 am, Malcolm Tredinnick wrote: > On Wed, 2009-01-28 at 04:27 -0800, Vinay Sajip wrote: > > I'd like to attach some user-defined meta-information to individual > > model fields and have it also be available in the corresponding form > > fields. Ideally,

Re: Meta-information for model and form fields

2009-01-28 Thread Malcolm Tredinnick
On Wed, 2009-01-28 at 04:27 -0800, Vinay Sajip wrote: > I'd like to attach some user-defined meta-information to individual > model fields and have it also be available in the corresponding form > fields. Ideally, I'd have liked to have a keyword arg on the fields... > > class

Meta-information for model and form fields

2009-01-28 Thread Vinay Sajip
I'd like to attach some user-defined meta-information to individual model fields and have it also be available in the corresponding form fields. Ideally, I'd have liked to have a keyword arg on the fields... class MyModel(models.Model): name = models.CharField(max_length=100,