brilliant, thank you. is there a python or django page that layouts all the available options that can be after the percentage and what they mean?
Thanks, Alan On Jul 14, 11:35 am, Subhranath Chunder <[email protected]> wrote: > Try this instead: > > def __unicode__(self): > return u"%d" % (self.mynumber, ) > > On Wed, Jul 14, 2010 at 3:57 PM, Nuno Maltez <[email protected]> wrote: > > Hi, > > > Why not > > > def __unicode__(self): > > return u"%d" % self.mynumber > > > ? > > > Nuno > > > On Wed, Jul 14, 2010 at 11:15 AM, alan-l > > <[email protected]> wrote: > > > Hi, > > > > in the tutorial i see that to return a string or a combination of > > > strings, i can do: > > > def __unicode__(self): > > > return u'%s %s' % (self.firstname, self.surname) > > > > what do i need to do to return a number? or more importantly, what is > > > the def called to ensure it is read and returned when looking at the > > > class in admin? > > > > Thanks, > > > > Alan > > > > -- > > > 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]<django-users%[email protected]> > > . > > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > > -- > > 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]<django-users%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- 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.

