Skip to content

Commit

Permalink
Admin: Disable nav sidebar
Browse files Browse the repository at this point in the history
This is new in Django 3.1 and breaks few things for us.

Given that we do not want users to use admin interface at all
it is better to disable the sidebar rather than trying to fix
what it breaks.
  • Loading branch information
nijel committed Jun 15, 2020
1 parent aa3b53d commit f645298
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weblate/wladmin/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class WeblateAdminSite(AdminSite):
site_header = _("Weblate administration")
site_title = _("Weblate administration")
index_template = "admin/weblate-index.html"
enable_nav_sidebar = False

@property
def site_url(self):
Expand Down

0 comments on commit f645298

Please sign in to comment.