Ticket #12339: safe_contenttype_update.diff

File safe_contenttype_update.diff, 615 bytes (added by Kenneth Arnold, 15 years ago)
  • django/contrib/contenttypes/management.py

     
    3030    # related permissions.
    3131    for ct in content_types:
    3232        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)
    3534
    3635def update_all_contenttypes(verbosity=2):
    3736    for app in get_apps():
Back to Top