It was a typo. Everything works now. Sorry for the fuss!

On Aug 19, 12:07 pm, Drasty <[EMAIL PROTECTED]> wrote:
> I'm getting an escaped double quotation mark (", rendered as '%22') at
> the end of some stuff that I'm using to reference an anchor on the
> same page. This isn't a problem in templates, since the links and
> corresponding anchors are generated. But if I want to enter a link in,
> say, a TextField to one of those anchors, it becomes a bit tedious.
>
> I'm wondering if there's a way for me to get rid of that apparently
> automatically generated character.
>
> Here's an example, with the escaped character in the "Output" section:
>
> (Code:)
>
> class Thing(models.Model):
>      words = models.TextField()
>      note = models.IntegerField()
>
>      def note_anchor(self):
>           return self.note
>
> (Template:)
>
> <p><a href="#{{ thing.note_anchor }}">Note {{ thing.note }}</a></p>
> <ol>
>      <li id="{{ thing.note_anchor }}">{{ thing.words }}</li>
> </ol>
>
> (Input:)
>
>      words = 'Blah blah.'
>      note = '1'
>
> (Output:)
>
> <p><a href="#1%22">Note 1</a></p>
> <ol>
>      <li id="1%22">Blah blah.</li>
> </ol>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to