#13516: sqlall silently ignores any fields that are a subclass of AutoField
------------------------------------------+---------------------------------
 Reporter:  manfre                        |       Owner:  nobody    
   Status:  new                           |   Milestone:  1.2       
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 A field that is a subclass of AutoField will be silently ignored in the
 output of manage.py sqlall

 An app with a models.py containing:

 {{{
 class MyAutoField(models.AutoField):
     pass

 class TestModel(models.Model):
     id = MyAutoField(primary_key=True, db_column='SomeID')

 }}}

 will output the below from sqlall for sqlite3.

 {{{
 BEGIN;
 CREATE TABLE "testapp_testmodel" (
 )
 ;
 COMMIT;
 }}}

 sqlall works as expected when models.AutoField is used instead of
 MyAutoField.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13516>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to