On Thu, 2007-03-15 at 05:58 +0000, mralokkp wrote:
> Thanks James but the spaces had been removed
> If Spaces it gives template error.
> If not it gives the former error
> says
> AttributeError at /registration/
> 'FormFieldWrapper' object has no attribute 'month'
> had resolved

Reading the error message gives a clue as to what is going wrong here:
you are not formatting a datetime object, you are trying to call the
filter on a FormFieldWrapper object, which won't work. It sounds like
you are getting confused about the types of variables in your template
-- maybe you are accidently calling two things by the same name in your
view function or something like that.

Trim your problem down to a very small example. Make it a template that
only displays this one thing. Then make sure the error still occurs (if
not, introduce more things until it happens again). Then start removing
things from your view so that you are only passing the single variable
into the template, checking that the error occurs each time. At some
point, you will find the error goes away, so you will have more
information about what the critical line of code is.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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