8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Fix acl.py lower

This commit is contained in:
chirac 2018-07-28 23:13:51 +02:00
parent b5513db8ae
commit 53079c0a9e

View file

@ -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