Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #16854 -- corrected an AttributeError coming from the contentty…

…pes post-syncdb hook. Thanks to desh for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 608548baa200d3945dee419787e3996d3e5a0b15 1 parent ce48e8e
@alex alex authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/contenttypes/
5 django/contrib/contenttypes/
@@ -44,7 +44,10 @@ def update_contenttypes(app, created_models, verbosity=2, **kwargs):
# 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:

0 comments on commit 608548b

Please sign in to comment.
Something went wrong with that request. Please try again.