Ticket #12339: safe_contenttype_update.diff
File safe_contenttype_update.diff, 615 bytes (added by , 15 years ago) |
---|
-
django/contrib/contenttypes/management.py
30 30 # related permissions. 31 31 for ct in content_types: 32 32 if verbosity >= 2: 33 print "Deleting stale content type '%s | %s'" % (ct.app_label, ct.model) 34 ct.delete() 33 print "Content type '%s | %s' is no longer used." % (ct.app_label, ct.model) 35 34 36 35 def update_all_contenttypes(verbosity=2): 37 36 for app in get_apps():