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
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
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
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
_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
5 matches
Mail list logo