I have a model in Django 1.2.4:
class MyModel():
foo = IntegerField(verbose_name="bar")
def printFoo(self):
print("Value of %s is %d" % (foo.verbose_name, foo))
I'm trying to get both the value and verbose name of a field. How can I do this?
I've looked at myModel._meta.fields
, but I'm not sure if that's the way to go.