Every time I try to access a formset via inlineformset_factory I get the following error messages:
Traceback: File "/home/luckybs/webapps/django1/lib/python2.5/django/core/handlers/ base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/home/luckybs/webapps/django1/lib/python2.5/django/contrib/auth/ decorators.py" in __call__ 67. return self.view_func(request, *args, **kwargs) File "/home/luckybs/webapps/django1/languagen/questions/views.py" in add_answer 134. formset = AnswerFormSet() File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in __init__ 724. queryset=qs) File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in __init__ 459. super(BaseModelFormSet, self).__init__(**defaults) File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ formsets.py" in __init__ 44. self._construct_forms() File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ formsets.py" in _construct_forms 87. for i in xrange(self.total_form_count()): File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in total_form_count 734. return super(BaseInlineFormSet, self).total_form_count () File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ formsets.py" in total_form_count 68. total_forms = self.initial_form_count() + self.extra File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in initial_form_count 729. return super(BaseInlineFormSet, self).initial_form_count () File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in initial_form_count 464. return len(self.get_queryset()) File "/home/luckybs/webapps/django1/lib/python2.5/django/forms/ models.py" in get_queryset 495. if not qs.ordered: Exception Type: AttributeError at /questions/10/add_answer/ Exception Value: 'QuerySet' object has no attribute 'ordered' I just updated my forms directory on my shared host from 1.0 to 1.2 (Perhaps that could be the problem?) The error message further states that the exact error message resides i the following: /home/luckybs/webapps/django1/lib/python2.5/django/forms/models.py in get_queryset 488. qs = self.queryset 489. else: 490. qs = self.model._default_manager.get_query_set() 491. 492. # If the queryset isn't already ordered we need to add an 493. # artificial ordering here to make sure that all formsets 494. # constructed from this queryset have the same form order. 495. if not qs.ordered: ... 496. qs = qs.order_by(self.model._meta.pk.name) 497. 498. if self.max_num > 0: 499. self._queryset = qs[:self.max_num] 500. else: 501. self._queryset = qs Can anyone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

