Author: Alex
Date: 2011-09-15 16:55:30 -0700 (Thu, 15 Sep 2011)
New Revision: 16832

Modified:
   django/trunk/django/contrib/contenttypes/management.py
Log:
Fixed #16854 -- corrected an AttributeError coming from the contenttypes 
post-syncdb hook.  Thanks to desh for the report.

Modified: django/trunk/django/contrib/contenttypes/management.py
===================================================================
--- django/trunk/django/contrib/contenttypes/management.py      2011-09-15 
07:26:35 UTC (rev 16831)
+++ django/trunk/django/contrib/contenttypes/management.py      2011-09-15 
23:55:30 UTC (rev 16832)
@@ -44,7 +44,10 @@
     # Confirm that the content type is stale before deletion.
     if to_remove:
         if kwargs.get('interactive', False):
-            content_type_display = '\n'.join(['    %s | %s' % (ct.app_label, 
ct.model) for ct in content_types])
+            content_type_display = '\n'.join([
+                '    %s | %s' % (ct.app_label, ct.model)
+                for ct in to_remove
+            ])
             ok_to_delete = raw_input("""The following content types are stale 
and need to be deleted:
 
 %s

-- 
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