I have a tuple set

MY_TYPE = (
    (0, 'Other'),
    (1, 'This'),
    (2, 'That'),
)

In my model I have a field that uses "choices" to set the value. Can
save/edit the model as  a modelform fine.

But I want to display a LIST of my records and replace the integer
with the respective text ..

so...

mylist = MyClass.objects.filter(key=lookup_value)

I can display the list, but it displays the integer value rather than
the "text" that I want. Help!!

In the template entering I have {% myObject.type %} which gives me the
0,1,2 etc...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to