Changes between Initial Version and Version 1 of Ticket #13803
- Timestamp:
- Jun 20, 2010, 2:06:21 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13803 – Description
initial v1 2 2 3 3 When 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 {{{ 5 5 from django.db import models 6 6 7 7 class Example(models.Model): 8 8 pk = models.AutoField(primary_key=True, db_column='pk') 9 9 }}} 10 10 --- 11 11 {{{ 12 12 >> test = Example() 13 13 … … 15 15 return setattr(self, self._meta.pk.attname, value) 16 16 RuntimeError: maximum recursion depth exceeded while calling a Python object 17 17 }}} 18 18 Changing the attribute name makes everything work normally: 19 19 {{{ 20 20 class Example(models.Model): 21 21 pkey = models.AutoField(primary_key=True, db_column='pk') 22 22 }}} 23 23 This is an issue in both 1.1 and 1.2, I'm using Python 2.6.1.