Commit 9be8ca1c authored by chirac's avatar chirac

Merge branch 'easier_acl' into 'master'

Fix acl.py lower

See merge request federez/re2o!206
parents ac7c8473 53079c0a
......@@ -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
......
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