Changes between Initial Version and Version 1 of Ticket #13803


Ignore:
Timestamp:
Jun 20, 2010, 2:06:21 PM (14 years ago)
Author:
Alex Gaynor
Comment:

Fixed up formatting. Also this is just going to be a docs issue IMO.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13803 – Description

    initial v1  
    22
    33When accessing the model through the shell Python doesn't crash, but no data is returned on queries and nothing can be inserted. Here's an example model that shows the problem, run syncdb to set it up and then try to interact with it.
    4 
     4{{{
    55from django.db import models
    66
    77class Example(models.Model):
    88    pk = models.AutoField(primary_key=True, db_column='pk')
    9 
     9}}}
    1010---
    11 
     11{{{
    1212>> test = Example()
    1313
     
    1515    return setattr(self, self._meta.pk.attname, value)
    1616RuntimeError: maximum recursion depth exceeded while calling a Python object
    17 
     17}}}
    1818Changing the attribute name makes everything work normally:
    19 
     19{{{
    2020class Example(models.Model):
    2121    pkey = models.AutoField(primary_key=True, db_column='pk')
    22 
     22}}}
    2323This is an issue in both 1.1 and 1.2, I'm using Python 2.6.1.
Back to Top