Browse Source

Fix acl.py lower

cherry-pick-a02e03ac
chirac 8 years ago
parent
commit
53079c0a9e
  1. 4
      re2o/templatetags/acl.py

4
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

Loading…
Cancel
Save