Changes between Initial Version and Version 2 of Ticket #10064


Ignore:
Timestamp:
Jan 18, 2009, 4:02:00 PM (16 years ago)
Author:
Karen Tracey
Comment:

(Fixed formatting.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10064 – Description

    initial v2  
     1
     2models.py:[[BR]]
    13{{{
    2 models.py:[[BR]]
    3 
    44class Account(models.Model):
    55    accountname = models.CharField(max_length=20)
     
    3939
    4040'''print transactions'''
    41 
     41{{{
    4242Traceback (most recent call last):
    4343  File "<console>", line 1, in <module>
    44   File "C:\Python25\lib\site-packages\django\db\models\query.py", line 239, in _
    45 _getitem__
     44  File "C:\Python25\lib\site-packages\django\db\models\query.py", line 239, in __getitem__
    4645    return list(qs)[0]
    47   File "C:\Python25\lib\site-packages\django\db\models\query.py", line 163, in _
    48 _len__
     46  File "C:\Python25\lib\site-packages\django\db\models\query.py", line 163, in __len__
    4947    self._result_cache.extend(list(self._iter))
    50   File "C:\Python25\lib\site-packages\django\db\models\query.py", line 294, in i
    51 terator
     48  File "C:\Python25\lib\site-packages\django\db\models\query.py", line 294, in iterator
    5249    setattr(obj, aggregate, row[i+aggregate_start])
    5350IndexError: tuple index out of range
     51}}}
Back to Top