mjl/feincms — comment on commit 579d575bbd1890e7b96a9ed2945831c58217f4f6
File: feincms/module/medialibrary/models.py line 241
By matthiask:

All that needs to change is that the admin class definitions and the admin.site.register call do not happen at the same time -- the registration of extensions should (mostly) happen in-between.

We don't even need the `from admin_late.py import *` statement at the end. `from .admin_late import MediaFileAdmin` in `register_extension` is perfectly sufficient.

(Btw, it's absolutely no problem if `admin.py` imports statements from models, admin_ or admin_late or whatever. When this happens we already had the occasion to do some class monkey patching.)