Ticket #12999: management.diff

File management.diff, 545 bytes (added by lsbardel, 15 years ago)
  • management.py

     
    77    Creates content types for models in the given app, removing any model
    88    entries that no longer have a matching model class.
    99    """
    10     db = kwargs['db']
     10    db = kwargs.get('db',None)
    1111    ContentType.objects.clear_cache()
    1212    content_types = list(ContentType.objects.using(db).filter(app_label=app.__name__.split('.')[-2]))
    1313    app_models = get_models(app)
Back to Top