Commit fa1a4599 authored by Sli's avatar Sli

Merge branch 'sas_right_fix' into 'master'

Sas right fix

See merge request !50
parents 7d99f02a 86c74b22
Pipeline #776 passed with stage
in 3 minutes and 22 seconds
......@@ -444,6 +444,7 @@ class AnonymousUser(AuthAnonymousUser):
def __init__(self, request):
super(AnonymousUser, self).__init__()
@property
def was_subscribed(self):
return False
......
......@@ -492,3 +492,17 @@ except:
if DEBUG:
INSTALLED_APPS += ("debug_toolbar",)
MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'sith.toolbar_debug.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
]
from debug_toolbar.panels.templates import TemplatesPanel as BaseTemplatesPanel
class TemplatesPanel(BaseTemplatesPanel):
def generate_stats(self, *args):
template = self.templates[0]['template']
if not hasattr(template, 'engine') and hasattr(template, 'backend'):
template.engine = template.backend
return super().generate_stats(*args)
  • Au fait, j'avais oublié:
    quand tu as des trucs comme ça, faut quand même séparer en deux commits, parce que typiquement le patch de la toolbar, le but serait de pouvoir le reverse plus tard sans péter les droits du SAS...
    En plus, ça empêche de bisect, et par dessus tout, ton message de commit est ducoup faux, puisque tu ne fais pas que fixer les droits du SAS...

    EDIT: j'ai rien dit, tu avais bien des commit séparés, mais ducoup tu as mal nommé ta MR

    Edited by Skia
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment