From 53079c0a9e33399faeb091a6a93a547eb53176ff Mon Sep 17 00:00:00 2001 From: chirac Date: Sat, 28 Jul 2018 23:13:51 +0200 Subject: [PATCH] Fix acl.py lower --- re2o/templatetags/acl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re2o/templatetags/acl.py b/re2o/templatetags/acl.py index 269ea051..fe13c5ac 100644 --- a/re2o/templatetags/acl.py +++ b/re2o/templatetags/acl.py @@ -95,11 +95,11 @@ def get_model(model_name): try: if app_label is not None: content_type = ContentType.objects.get( - model=name, + model=name.lower(), app_label=app_label ) else: - content_type = ContentType.objects.get(model=name) + content_type = ContentType.objects.get(model=name.lower()) except ContentType.DoesNotExist: raise template.TemplateSyntaxError( "%r is not a valid model for an acl tag" % model_name