On 2 Mar, 18:45, Greg <[EMAIL PROTECTED]> wrote:
> Justin,
> I tried that but I'm still getting the following error:
>
> Invalid block tag: 'a.date|date'
>
> ////////////
>
> My Model file is setup this way:
>
> class Guestbook(models.Model):
>     name = models.CharField(maxlength=100)
>     location = models.CharField(maxlength=100)
>     state = models.USStateField()
>     date = models.DateField()
>     comment = models.TextField(maxlength=5000)
>

It's a variable, not a tag, so use {{ a.date|date "jS o\f F" }} - ie
{{ }}, rather than {% %}.

--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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