On Sat, May 3, 2008 at 2:15 AM, Greg Taylor <[EMAIL PROTECTED]> wrote:

>
> I was wondering if there's any reason why get_FOO_display() calls
> aren't being evaluated when updating/adding new objects via the admin
> interface. What I mean by this is:
>
> The workout "1" was changed successfully.
>
> Instead of:
>
> The workout "Running" was changed successfully.
>
> The field in question is an IntegerField with a choices tuple defined
> that looks like:
>
> WORKOUT_TYPE_CHOICES = (
>  (0, "Biking"),
>  (1, "Running"),
> )
>
> The class' __str__ method looks like this:
> return self.get_activity_type_display()
>
> Any ideas?
>

Sound like this problem:

http://code.djangoproject.com/ticket/6853

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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