I have a template tag to output a field with my format. It seems to
have stopped working since the BaseForm/Form seperation

def form_line(field):
   output = []
   output.append(field.label_tag())
   for error in field.errors:
       output.append('<small class="error">%s</small>' %
escape(error))
   output.append(str(field))
   return ' '.join(output)

Following is the traceback which I'm getting. Some initial test seems
that self.form is getting weirded up - In the last call of the
traceback, self.form resolves to <personal.forms.first_name object at
0x015A6CF0> which doesn't seem right.

Traceback (most recent call last):
File "D:\Web\Python24\lib\site-packages\django\template\__init__.py" in
render_node
 712. result = node.render(context)
File "D:\Web\Python24\lib\site-packages\django\template\__init__.py" in
render
 845. return func(*resolved_vars)
File "D:\Web\Django\projects\upstage\personal\templatetags\forms.py" in
form_line
 9. for error in field.errors:
File "D:\Web\Python24\lib\site-packages\django\newforms\forms.py" in
_errors
 213. return self.form.errors.get(self.name, ErrorList())

 AttributeError at /manage/
 'function' object has no attribute 'get'


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to