Author: russellm
Date: 2010-04-01 10:29:58 -0500 (Thu, 01 Apr 2010)
New Revision: 12903

Modified:
   django/trunk/django/core/management/commands/sqlsequencereset.py
Log:
Fixed #13248 -- Corrected the output of sqlsequencereset after the m2m changes. 
Thanks to EroSennin for the report, and Gabriel Hurley for the fix.

Modified: django/trunk/django/core/management/commands/sqlsequencereset.py
===================================================================
--- django/trunk/django/core/management/commands/sqlsequencereset.py    
2010-04-01 15:25:54 UTC (rev 12902)
+++ django/trunk/django/core/management/commands/sqlsequencereset.py    
2010-04-01 15:29:58 UTC (rev 12903)
@@ -17,4 +17,4 @@
 
     def handle_app(self, app, **options):
         connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
-        return u'\n'.join(connection.ops.sequence_reset_sql(self.style, 
models.get_models(app))).encode('utf-8')
+        return u'\n'.join(connection.ops.sequence_reset_sql(self.style, 
models.get_models(app, include_auto_created=True))).encode('utf-8')

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

Reply via email to