4781: Unable to set up admin site in extension

cyran.norbert

What version of Djblets are you using?

1.0.8

Which module(s) have the problem?

djblets.extensions.manager, djblets.extensions.extension

What steps will reproduce the problem?

  1. Create rb extension
  2. Set has_admin_site = True
  3. Create models.py and admin.py
  4. Register model in admin.py like shown in docs
  5. AttributeError

What is the expected output? What do you see instead?

Working admin site is expected, instead I get AttributeError when enabling the extension

What version of Python and Django?

Python 2.7, Django 1.6.11

Please provide any additional information below.

I have also already tried not registering model in admin.py, instead I've registered it from shell. No exception is thrown, but admin site is still empty. Attached screenshot after that operation.

Also attached logs with the exception.

I've done a quick research what could be the cause, in djblets.extensions.manager line 876, which uses Extension.instance is before line 889, where instance attribute is added to the Extension class. But I still don't know why admin site still doesn't work when I register models manually