SmileyChris wrote:
> The problem is, that it still gets double-escaped. Django's
> FilterExpression checks to see if the incoming object is SafeData, but
> at this stage it is a Model object - it hasn't be translated to its
> __unicode__ value yet.
As far as I understand the thing *now*, it
Hi Chris,
SmileyChris wrote:
> So my template looks like: {{ group|caps }} (`group` is a Model object
> and the `caps` filter just capitalizes the first letter) and I'm stuck
> with double escaping.
>
> The problem is, that it still gets double-escaped. Django's
> FilterExpression checks to see
PS: I've never even noticed the built-in `capfirst` filter until just
now, but mine was pretty much identical. The built-in one doesn't
solve this problem either.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
So my template looks like: {{ group|caps }} (`group` is a Model object
and the `caps` filter just capitalizes the first letter) and I'm stuck
with double escaping.
The problem is, that it still gets double-escaped. Django's
FilterExpression checks to see if the incoming object is SafeData, but
On Nov 21, 3:01 pm, onno <[EMAIL PROTECTED]> wrote:
> On 21 nov, 13:56, "James Bennett" <[EMAIL PROTECTED]> wrote:
>
> > On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote:
>
> > > Why, did you developers not decide to include a automatic "class
> > > required" value for label and input
I tried to find a solution for tickets #3512 (Add "required" & "error"
CSS classes to form rows in as_* methods) and #3515 (CSS improvements
for newforms). I added a patch and I got an advice to bring this topic
here.
I would like to propose new attribute for Widget.__init__ -
outer_attrs.
No, I meant
#python, because you're almost always in #django. :-P
Good catch.
Don Spaulding
Collin Grady wrote:
Don Spaulding said the following:
into the irc channel (#python on irc.freenode.net) to get the help
I think you mean #django on irc.freenode.net :)
Don Spaulding said the following:
> into the irc channel (#python on irc.freenode.net) to get the help
I think you mean #django on irc.freenode.net :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On 21 nov, 13:56, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote:
>
> > Why, did you developers not decide to include a automatic "class
> > required" value for label and input fields.
>
> Have you considered searching the ticket tracker for
On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote:
> Why, did you developers not decide to include a automatic "class
> required" value for label and input fields.
Have you considered searching the ticket tracker for the open tickets
on this issue and proposals for the best way to restore
Why, did you developers not decide to include a automatic "class
required" value for label and input fields.
Now you have to jump some hoops to get the required class on your
label html output. This makes no sense in the general way that django
works.
something like
f = form.form_for_model(Foo)
Hi all,
This is a really impressive solution. An extra idea:
adding a {% as variable_name %}{% endas %} or {% as variable %}{%
endas variable_name %}
Example:
{% blocktrans %}
Received on {{ message.created|date as date }}
from
{% as link_open %}{% endas link_open }}
{{
12 matches
Mail list logo