Ticket #10887: 10887.diff

File 10887.diff, 635 bytes (added by SmileyChris, 6 years ago)
  • django/contrib/admin/__init__.py

     
    3737        # should) bubble up, but a missing __path__ (which is legal, but weird)
    3838        # fails silently -- apps that do weird things with __path__ might
    3939        # need to roll their own admin registration.
     40        mod = import_module(app)
    4041        try:
    41             app_path = import_module(app).__path__
     42            app_path = mod.__path__
    4243        except AttributeError:
    4344            continue
    4445
Back to Top