Ok I actually just figured it out. My issue was that I was calling the function instead of the actual instance of the form. I got confused because the variables were named almost identically.
On May 24, 8:27 pm, Alexandra <proofbyde...@gmail.com> wrote: > Hi All, > > I am somewhat new to Django, although I have been programming in > Python for a while. I installed Pinax and have been working on a site > from one of the starter templates, and have an error I can't seem to > wrap my head around. > > Exception Type: TypeError at /models/add > Exception Value: argument of type 'NoneType' is not iterable > Exception Location: /Users/ab/Desktop/mysite/lib/python2.6/site- > packages/django/forms/models.py in construct_instance, line 40 > > Here is the traceback: > Traceback: > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/core/ > handlers/base.py" in get_response > 100. response = callback(request, > *callback_args, **callback_kwargs) > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > contrib/auth/decorators.py" in _wrapped_view > 25. return view_func(request, *args, **kwargs) > File "/Users/ab/Desktop/store/models/views.py" in add_model > 65. if formtoaddmodel.is_valid(): > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > forms/forms.py" in is_valid > 121. return self.is_bound and not bool(self.errors) > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > forms/forms.py" in _get_errors > 112. self.full_clean() > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > forms/forms.py" in full_clean > 269. self._post_clean() > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > forms/models.py" in _post_clean > 316. self.instance = construct_instance(self, self.instance, > opts.fields, opts.exclude) > File "/Users/ab/Desktop/mysite/lib/python2.6/site-packages/django/ > forms/models.py" in construct_instance > 40. or not f.name in cleaned_data: > > Any hints on why this is occurring? Or at least hints on where to > start? > > Thanks! > > -Alexandra -- 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.