Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Forum posting problems with latest trunk update

I updated this afternoon to the newest Django (5297) and SCT (233) revs, and just tried posting a new post in one of the forums on my website and now I get...
AttributeError at /board/post/2/
'PostForm' object has no attribute 'clean_data'


Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
77. response = callback(request, *callback_args, **callback_kwargs)
File "/var/www/wotn/wotn/../sphenecoll/sphene/sphboard/views.py" in post
174. data = postForm.clean_data

AttributeError at /board/post/2/
'PostForm' object has no attribute 'clean_data'


This should be cleaned_data instead of clean_data. I changed it and it fixed it.

Darned typos!
What? You wanted a sig?
thanks for hunting down the problem
but.. it wasn't a typo ;)
it was changed 6 days ago in the django trunk: http://code.djangoproject.com/changeset/5237

it is also summed up here: http://code.djangoproject.com/wiki/\BackwardsIncompatibleChanges#Newforms:clean_datachangedtocleaned_data

(since it's a trunk and <1.0 it's natural to have api changes once in a while.. i haven't payed attention to that though ..)

anyway .. i found 4,5 occurrences in the SCT code and fixed them - http://yourhell.com/wsvn/root/django/communitytools/?rev=234&sc=1 .. so you should probably still update.
Hey, we have Signatures !!! Great, isn't it ? ;)
btw - there was also a second problem which occurred with the current django trunk - the email notifications did not work .. this is because i passed the recipients as list instead of tuple.. it didn't matter with an older django version :)

but hopefully this is now also fixed.
Hey, we have Signatures !!! Great, isn't it ? ;)
Excellent, thanks Herbert.

As you can probably tell I'm back at it again, if I find any more problems I'll get back to the Issue tracker.
What? You wanted a sig?

Please login to post a reply.



Powered by Sphene Community Tools