I'm getting "'NoneType' object has no attribute 'widget'" exception and I just can't figure out where is the problem. Here is my error:
Django Version: 1.1 Traceback: File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "C:\Python26\lib\site-packages\django\contrib\auth\decorators.py" in __call__ 78. return self.view_func(request, *args, **kwargs) File "C:\Documents and Settings\nick\My Documents\freediary\.. \freediary\diary\actions.py" in add_entry 11. if not f.is_valid(): File "C:\Python26\lib\site-packages\django\forms\forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "C:\Python26\lib\site-packages\django\forms\forms.py" in _get_errors 111. self.full_clean() File "C:\Python26\lib\site-packages\django\forms\forms.py" in full_clean 234. value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name)) Exception Value: 'NoneType' object has no attribute 'widget' Snippet from actions.py is here: http://pastebin.com/m7f6a17f1 Relevant part of models.py is here: http://pastebin.com/m2ecb6933 For used for POSTing is here: http://pastebin.com/m1f379dd6 I've been returning to this one for last few hours, I've been tweaking the code trying to get the idea what's wrong here, and I just have no idea where to go from here... Any help would be appreciated. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---