#10881: db.backends.postgresql.operations.sequence_reset_sql and M2M fields with
non-integer PKs
---------------------------------------------------+------------------------
          Reporter:  gordyt                        |         Owner:  nobody     
                                      
            Status:  new                           |     Milestone:             
                                      
         Component:  Database layer (models, ORM)  |       Version:  1.0        
                                      
        Resolution:                                |      Keywords:  
postgresql,operations,sequence_reset_sql,loaddata
             Stage:  Unreviewed                    |     Has_patch:  1          
                                      
        Needs_docs:  0                             |   Needs_tests:  1          
                                      
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by anonymous):

 A test should establish that without the patch, m2ms defined with the
 through kwarg can cause sequence_reset_sql to fail in two ways:

  1. trying to reset a sequence on primary key fields that have no sequence
 (non-{{{AutoField}}} pks)
  2. trying to reset the wrong sequence on primary key fields that have
 {{{db_column}}} set to a value other than "{{{id}}}".

 With the patch, both of these issues are solved.  If no one else has time
 to do this, I will try to get my test suite working, and code up a test.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10881#comment:2>
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-updates@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