Alan,
This is simple python string formatting. You may refer to the following for
more details:
http://docs.python.org/library/stdtypes.html#string-formatting
Thanks,
Subhranath Chunder.
On Wed, Jul 14, 2010 at 5:31 PM, alan-l
wrote:
> brilliant, thank you.
>
> is there a python or django page
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 wrote:
> Try this instead:
>
> def __unicode__(self):
> return u"%d" % (self.mynumber, )
>
Try this instead:
def __unicode__(self):
return u"%d" % (self.mynumber, )
On Wed, Jul 14, 2010 at 3:57 PM, Nuno Maltez wrote:
> Hi,
>
> Why not
>
> def __unicode__(self):
>return u"%d" % self.mynumber
>
> ?
>
> Nuno
>
> On Wed, Jul 14, 2010 at 11:15 AM, alan-l
> wrote:
> > Hi,
> >
> >
Hi,
Why not
def __unicode__(self):
return u"%d" % self.mynumber
?
Nuno
On Wed, Jul 14, 2010 at 11:15 AM, alan-l
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, s
4 matches
Mail list logo