Changes between Initial Version and Version 2 of Ticket #10064
- Timestamp:
- Jan 18, 2009, 4:02:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10064 – Description
initial v2 1 2 models.py:[[BR]] 1 3 {{{ 2 models.py:[[BR]]3 4 4 class Account(models.Model): 5 5 accountname = models.CharField(max_length=20) … … 39 39 40 40 '''print transactions''' 41 41 {{{ 42 42 Traceback (most recent call last): 43 43 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__ 46 45 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__ 49 47 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 52 49 setattr(obj, aggregate, row[i+aggregate_start]) 53 50 IndexError: tuple index out of range 51 }}}