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 am trying to get both the value and the detailed field name. How can i do this?
I looked at myModel._meta.fields , but I'm not sure if this is the way to go.
Nick heiner
source share