Hi Greg,
Strictly speaking None ain't a number (nor a float), so it probably
isn't a bug.
Although it might be convenient at times to automatically convert None
to 0 (as in your case).
A simple workaround I always use is:
{{ best_avg_reliability|default:0|floatformat:1 }}
Greetings,
- Matthias
I've written a very simple calendar template_tag, if you're interested
I can post it here or put it on djangosnippets.org.
Ciao,
- Matthias
Pythoni wrote:
> How much difficult is to add calendar ,like that in the admin , to my
> templates?
> Or is there an easier way to add any different calen
Ok, here you go:
http://www.djangosnippets.org/snippets/129/
Hope you find it usefull.
If you have any questions, do not hesitate to contact!
Ciao,
- Matthias
On Mar 23, 8:49 pm, "Pythoni" <[EMAIL PROTECTED]> wrote:
> Please post it.
> Thank you
> L.
>
> On Ma
r where I can test it?
> Thank you.
> L.
>
> On Mar 23, 10:14 pm, "Masida" <[EMAIL PROTECTED]> wrote:
> > Ok, here you go:http://www.djangosnippets.org/snippets/129/
> >
> > Hope you find it usefull.
> > If you have any questions, do not hes
This should work:
class Foo:
def hello(self):
return "Hello World"
object = Foo()
print object.hello()
More information:
http://www.diveintopython.org/object_oriented_framework/index.html
Ciao,
- Matt
On Apr 11, 12:22 am, "Grupo Django" <[EMAIL PROTECTED]> wrote:
> I know this i
Goed idee, ik heb ook interesse!
Is er toevallig al een Nederlandstalige Django website?
Voor Rails weet ik dat er al wel een aantal alternatieven zijn...
Groeten,
- Matthias
baasbartels schreef:
> Aardig om te zien dat er interesse is. Als antwoord op de vraag van
> Franklin: heel precies heb
6 matches
Mail list logo