------------------------------------------------------------------------------ To reply, visit https://hellosplat.com/s/beanbag/tickets/4781/ ------------------------------------------------------------------------------
New ticket #4781 by cyran.norbert For Beanbag, Inc. > Djblets Status: New Tags: Priority:Medium, Project:RBTools File attachments: * Screenshot_2019-01-10 Site administration Administration Review Board.png <https://hellosplat.com/s/beanbag/attachments/1335/> * Screenshot_2019-01-10 Server Log Review Board.png <https://hellosplat.com/s/beanbag/attachments/1336/> ------------------------------------------------------------------------------ Unable to set up admin site in extension ============================================================================== # 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 ------------------------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/d/optout.
