Fix bugs in auto_register_inlines method
(obsolete using of inline_instances which is absent in actual Django version).
PEP-8 fixes.