On Sun, Aug 8, 2010 at 00:19, adambossy wrote:
> I have a custom template tag that looks like so:
>
> @register.inclusion_tag('bar.html')
> def foo(b=None)
>return locals()
>
> The variables b is a boolean. How do I pass a boolean to it from the
> django template?
>
{% foo 0 %} or {% foo 1 %
Hi Anssi,
creating queryset first and reusing it later is a nice idea and I'll
add it to my tests, but unfortunately it works only when you can share
this queryset between db requests, which is impossible in case of
multiply simultaneously requests to server. For example, if you show
some profile d
Hi everyone,
I'm writing to draw attention to a ticket I opened a couple of months
ago that seems to have been overlooked:
http://code.djangoproject.com/ticket/13679
There was a regression in Django 1.1.2 that's causing ModelForms to
ignore callable defaults for ForeignKeys. I attached a simple
Hi,
> 1. You have an object for each language. This object contains some
> language-attribute which makes it easy to filter stuff. Admin and views
> are no-brainers.
I think this is the right approach. A sample API is open for
discussion here:
http://code.djangoproject.com/wiki/ModelInterNational