django - ImportError: cannot import name update_all_contenttypes -


i upgraded django 1.8. in previous versions of django, following import fine:

from django.contrib.contenttypes.management import update_all_contenttypes 

but update_all_contenttypes appears have been silently removed in django 1.8 (it there in 1.7.7). i'm not seeing in 1.8 release notes removal... know modern replacement function?

it's unclear why function removed in 1.8, appears modern replacement re-invent wheel:

from django.apps import apps django.contrib.contenttypes.management import update_contenttypes  def update_all_contenttypes(**kwargs):     app_config in apps.get_app_configs():         update_contenttypes(app_config, **kwargs) 

Popular posts from this blog

html/hta mutiple file in audio player -

debugging - Reference - What does this error mean in PHP? -