for field in OrderAddress._meta.fields:Reference: http://stackoverflow.com/questions/5358800/django-listing-model-field-names-and-values-in-template
field.name
user = User.objects.latest('pk')
for field in user._meta.fields:
field.name, field.value_to_string(user)
Sunday, 3 November 2013
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment