Yay another fitness app based on django! http://code.google.com/p/fiteat/
On May 3, 9: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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---