Re: Use _meta.fields to return the datatype

2009-01-26 Thread Malcolm Tredinnick
On Fri, 2009-01-23 at 21:48 -0800, dj wrote: > It would appear there is method called get_internal_type() that maybe > what I am looking for. > The method is in django.db.models.Field. But I am unable to find > anything that would tell > me how to use the function to return the data type for a fie

Re: Use _meta.fields to return the datatype

2009-01-24 Thread dj
els. > >> Using _meta.fields to return the field names in a model instance, the > >> current value of an instance (getattr()) and set the value (setattr > >> ()). > > >> I was wondering if anyone knows how to use _meta.fields to return the > >> dat

Re: Use _meta.fields to return the datatype

2009-01-24 Thread Steve Holden
an instance (getattr()) and set the value (setattr >> ()). >> >> I was wondering if anyone knows how to use _meta.fields to return the >> datatype for a field in a model ? >> >> Your assistance is greatly appreciated :-). >> > It would appear there is m

Re: Use _meta.fields to return the datatype

2009-01-23 Thread dj
s to return the field names in a model instance, the > current value of an instance (getattr()) and set the value (setattr > ()). > > I was wondering if anyone knows how to use _meta.fields to return the > datatype for a field in a model ? > > Yo

RE: Use _meta.fields to return the datatype

2009-01-23 Thread dj
_meta.fields to return the datatype for a field in a model ? Your assistance is greatly appreciated :-). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj